加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

解决编译时依赖版本冲突问题

发布时间:2020-12-14 05:07:07 所属栏目:百科 来源:网络整理
导读:? 当编译出现如下问题(版本不兼容): Android dependency ‘com.android.support:support-fragment‘ has different version for the compile (25.3.1) and runtime (26.1.0) classpath. You should manually set the same version via DependencyResoluti

?

当编译出现如下问题(版本不兼容):

Android dependency ‘com.android.support:support-fragment‘ has different version for the compile (25.3.1) and runtime (26.1.0) classpath. You should manually set the same version via DependencyResolution

如何解决 :

./gradlew app:dependencies > log_dependencies.txt

提取依赖的信息。

?

打开??log_dependencies.txt文件,查找26.1.0关键字。

当前使用的implementation ‘com.android.support:appcompat-v7:25.3.1‘

发现:account模块中,所依赖模块mvp的 25.3.1与26.1.0冲突。

?

解决方案:

1:mvp模块中去掉所依赖的冲突项。

2:添加指定解决版本冲突的依赖项版本。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读