I am using intellij 14.0.3.
Using the "install plugin from disk", I installed Crashlytics intellij plugin .
When I try to import Crashlytics inside my code and build, I get the following error.
Error:Android Dex: [myapplication] Unable to execute DX
Error:Android Dex: [myapplication] com.android.dex.DexException: Multiple dex files define Lcom/crashlytics/android/A;
Error:Android Dex: [myapplication] at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
Error:Android Dex: [myapplication] at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
Error:Android Dex: [myapplication] at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
Error:Android Dex: [myapplication] at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170)
Error:Android Dex: [myapplication] at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
Error:Android Dex: [myapplication] at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
Error:Android Dex: [myapplication] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
Error:Android Dex: [myapplication] at com.android.dx.command.dexer.Main.run(Main.java:230)
Error:Android Dex: [myapplication] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Error:Android Dex: [myapplication] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
Error:Android Dex: [myapplication] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Error:Android Dex: [myapplication] at java.lang.reflect.Method.invoke(Method.java:606)
Error:Android Dex: [myapplication] at org.jetbrains.android.compiler.tools.AndroidDxRunner.runDex(AndroidDxRunner.java:161)
Error:Android Dex: [myapplication] at org.jetbrains.android.compiler.tools.AndroidDxRunner.main(AndroidDxRunner.java:294)
Error:Android Dex: [myapplication] at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:130)
I uninstalled the plugin and reinstalled, but I am still getting this problem.
The plugin creates the crashlytics.jar file inside the lib project folder.
When I delete this file, the plugin automatically creates a new one.
How can I find the problem? I currently include these libraries:
- Google Play services
- Google analytics
- Android lib support
- Loopj async http lib
- Commons lang lib