意外的顶级例外:
com.android.dx.util.DexException: Multiple dex files define Landroid/support/androidannotations;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:592)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:550)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:531)
at com.android.dx.merge.DexMerger.mergeDexBuffers(DexMerger.java:168)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:186)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:300)
at com.android.dx.command.dexer.Main.run(Main.java:232)
at com.android.dx.command.dexer.Main.main(Main.java:174)
at com.android.dx.command.Main.main(Main.java:91)
Gradle dependecy:
compile 'jars/quickblox-android-sdk-chat-2.2.1.jar'
注意:我也使用android-support-v4依赖。
从我的理解错误看起来像在。中存在android.support.annotations 两个'quickblox chat'& 'android support'。
那么,有什么方法可以从quickblox-android-sdk-chat-2.2.1.jar中排除'android.support.annotations'包?
答案 0 :(得分:0)