I have an issue when I try to build my project, here my structure : ActionBarSherlock (Project lib) -->(linked) A Project (Lib) -->(linked) to Project Test
When I try to run the project test on eclipse every things are fine but when I changed for Android Studio I have that issue:
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)
Someone can help me, please Thanks
You have to check the modules of both projects. Make sure they are both using the same version of the support library (or any other lib they are both using).
A Build -> Clean Project and a full new Build did the trick for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With