引入讯飞aiui的jar包时,与之前集成的腾讯x5浏览器内核产生了依赖冲突
报错内容为Program type already present:MTT.ThirdAppInfoNew
后续集成recyclerview的时候也报错,错误内容:Caused by: org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.conflicts.VersionConflictException: Conflict(s) found for the following module(s):
可以打开Android studio的eventlog查看具体的报错信息
Gradle sync failed: Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Conflict(s) found for the following module(s):
- androidx.recyclerview:recyclerview between versions 1.1.0 and 1.0.0
Run with:
--scan or
:app:dependencyInsight --configuration debugRuntimeClasspath --dependency androidx.recyclerview:recyclerview
to get more insight on how to solve the conflict.
Consult IDE log for more details (Help | Show Log) (446 ms)
查看依赖
可以通过gradle view插件查看,网上一搜一大堆
定位依赖冲突
在module的gra