Android RethinkDB实现上的重复类错误

时间:2019-02-23 22:18:54

标签: java android rethinkdb

我正在制作一个实时消息传递应用程序。我将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,所以您可以帮助我找到它或解决问题吗?

1 个答案:

答案 0 :(得分:0)

我使用Android Studio Code Inspector工具解决了该错误。在检查器上,我发现不兼容(两个不同库的不匹配类)的gradle版本。更改此库的类的gradle版本。