Android RethinkDB 实现中的重复 类 错误
Duplicate classes error on Android RethinkDB implementation
我正在制作一个实时消息传递应用程序。我将 RethinkDB 实现添加到 gradle 并且此错误闪烁:
AGPBI: {"kind":"error","text":"Program type already present: org.hamcrest.core.DescribedAs","sources":[{}],"tool":"D8"}
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Program type already present: org.hamcrest.core.DescribedAs
我找不到哪个其他实现包括 hamcrest.core.DescribedAs,所以你能帮我找到它或解决问题吗?
我使用 Android Studio Code Inspector 工具解决了错误。在 Inspector 上,我发现不兼容(不匹配 类 两个不同的库)gradle 版本。更改此库的 类.
的 gradle 版本
我正在制作一个实时消息传递应用程序。我将 RethinkDB 实现添加到 gradle 并且此错误闪烁:
AGPBI: {"kind":"error","text":"Program type already present: org.hamcrest.core.DescribedAs","sources":[{}],"tool":"D8"}
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Program type already present: org.hamcrest.core.DescribedAs
我找不到哪个其他实现包括 hamcrest.core.DescribedAs,所以你能帮我找到它或解决问题吗?
我使用 Android Studio Code Inspector 工具解决了错误。在 Inspector 上,我发现不兼容(不匹配 类 两个不同的库)gradle 版本。更改此库的 类.
的 gradle 版本