小编dou*_*bou的帖子

意想不到的顶级例外:在Android Studio而不是Eclipse上

我尝试构建项目时出现问题,这里是我的结构:ActionBarSherlock(项目库) - >(链接)项目(Lib) - >(链接)到项目测试

当我尝试在eclipse上运行项目测试时,每件事都很好,但是当我为Android Studio更改时,我遇到了这个问题:

Android Dex: [sample] UNEXPECTED TOP-LEVEL EXCEPTION:
Android Dex: [sample] java.lang.IllegalArgumentException: already added: Lcom/myClassPath/MyClassName;
Android Dex: [sample] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
Android Dex: [sample] at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
Android Dex: [sample] at com.android.dx.command.dexer.Main.processClass(Main.java:490)
Run Code Online (Sandbox Code Playgroud)

有人可以帮助我,谢谢

android build android-studio

4
推荐指数
1
解决办法
3973
查看次数

标签 统计

android ×1

android-studio ×1

build ×1