简体   繁体   English

Crashlytics多个dex文件定义错误

[英]Crashlytics Multiple dex files define error

I use intellij 14.0.3. 我使用intellij 14.0.3。
By using "install plugin from disk" I installed Crashlytics intellij plugin . 通过使用“从磁盘安装插件”我安装了Crashlytics intellij插件
When I try to import Crashlytics inside my code and build I get following error. 当我尝试在我的代码中导入Crashlytics并构建时出现以下错误。

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 plugin and reinstalled but I still get this problem. 我卸载了插件并重新安装,但我仍然遇到这个问题。
Plugin creates a crashlytics.jar file inside project's lib folder. 插件在项目的lib文件夹中创建一个crashlytics.jar文件。
When I delete that file, plugin automatically creates a new one. 当我删除该文件时,插件会自动创建一个新文件。

How can I find the problematic issue ? 我怎样才能找到有问题的问题? Currently I include these libraries: 目前我包括这些库:
- Google play services - Google Play服务
- Google analytics - 谷歌分析
- Android support lib - Android支持lib
- Loopj async http lib - Loopj async http lib
- Commons lang lib - Commons lang lib

This happened to me when updating to fabric. 更新到结构时发生了这种情况。 I had to delete crashlytics.jar from the libs folder. 我不得不从libs文件夹中删除crashlytics.jar。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法执行dex:多个dex文件已定义 - Unable to execute dex: Multiple dex files define 为什么我们得到多个dex文件在android中定义错误 - Why we get Multiple dex files define error in android 生成错误。 gradle(定义了多个dex文件) - Error in the build. gradle ( Multiple dex files define ) 错误:com.android.dex.DexException:多个dex文件定义了Ledu / umd / cs / findbugs / annotations / NonNull; - Error:com.android.dex.DexException: Multiple dex files define Ledu/umd/cs/findbugs/annotations/NonNull; 将字节码转换为dex时出错:原因:com.android.dex.DexException:多个dex文件定义了Lcom / RNFetchBlob / RNFetchBlobConst; - Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/RNFetchBlob/RNFetchBlobConst; 无法执行dex:定义了多个dex文件…或NoClassDefFoundError - Unable to execute dex: Multiple dex files define… OR NoClassDefFoundError Eclipse / Java / Android无法执行dex:定义了多个dex文件 - Eclipse/Java/Android Unable to execute dex: Multiple dex files define Android Socialize SDK:无法执行dex:多个dex文件定义 - Android Socialize SDK: Unable to execute dex: Multiple dex files define 无法执行 dex:多个 dex 文件定义了 Lbolts/AggregateException - Unable to execute dex: Multiple dex files define Lbolts/AggregateException Android多个dex文件定义问题 - Android Multiple dex files define issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM