unity3d android导出项目编译Multiple dex files define Lcom/unity3d/player/UnityPlayerActivity

unity3d版本: 4.1.2

在导出android工程进行编译时,发现出现Multiple dex files define Lcom/unity3d/player/UnityPlayerActivity的错误,

而这个错误是表示有重复的文件,查看unity-classes.jar,发现相同的包名与类名,

于是修改当前项目的包名com.unity3d.players,

并在UnityPlayerProxyActivity代码中修改相应Activity包名,String classNames[] = { "com.unity3d.players.UnityPlayerActivity", "com.unity3d.players.UnityPlayerNativeActivity" };

你可能感兴趣的:(Activity)