Android Studio - 意外的顶级异常 QuickBlox 聊天 jar
Android Studio - UNEXPECTED TOP-LEVEL EXCEPTION QuickBlox chat jar
意外的顶级异常:
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依赖关系:
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' 包??
意外的顶级异常:
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依赖关系:
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' 包??