我有一个android eclipse项目,使用ant构建项目的新副本,而运行时,我得到以下错误
UNEXPECTED TOP-LEVEL EXCEPTION:
[dx] com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
[dx] at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502)
[dx] at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277)
[dx] at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491)
[dx] at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168)
[dx] at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
[dx] at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
[dx] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
[dx] at com.android.dx.command.dexer.Main.run(Main.java:246)
[dx] at com.android.dx.command.dexer.Main.main(Main.java:215)
[dx] at com.android.dx.command.Main.main(Main.java:106)
我在我的主应用程序类中尝试MultiDexApplication
类attachBaseContext()
方法仍然遇到上述问题,我做错了什么?
您的回复将不胜感激......