我是否可以忽略“不兼容的Gradle版本”棉绒检查,如果Gradle覆盖了Transtivie依赖项?

我是否可以忽略“不兼容的Gradle版本”棉绒检查,如果Gradle覆盖了Transtivie依赖项?,第1张

概述我只是违反了此皮棉检查:IncompatibleGradleVersions../../build.gradle:Allcom.android.supportlibrariesmustusetheexactsameversionspecification(mixingversionscanleadtoruntimecrashes).Foundversions25.3.1,25.2.0.Examplesincludeco

我只是违反了此皮棉检查:

Incompatible Gradle Versions ../../build.gradle: All
com.android.support librarIEs must use the exact same version
specification (mixing versions can lead to runtime crashes). Found
versions 25.3.1, 25.2.0. Examples include
com.androID.support:animated-vector-drawable:25.3.1 and
com.androID.support:support-v13:25.2.0

我的某些传递依赖项肯定不会更新为最新的支持版本.但是,我在我的应用程序build.gradle文件中以最新版本将支持库设置为第一级依赖项.我什至可以看到Gradle覆盖了所有这些依赖项:

$./gradlew app:dependencIEs | grep 25.2.0|    +--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v13:25.2.0|    |    +--- com.androID.support:support-annotations:25.2.0 -> 25.3.1|    |    \--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    \--- com.androID.support:design:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v13:25.2.0|    |    +--- com.androID.support:support-annotations:25.2.0 -> 25.3.1|    |    \--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    \--- com.androID.support:design:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v13:25.2.0|    |    +--- com.androID.support:support-annotations:25.2.0 -> 25.3.1|    |    \--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    \--- com.androID.support:design:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v13:25.2.0|    |    +--- com.androID.support:support-annotations:25.2.0 -> 25.3.1|    |    \--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    \--- com.androID.support:design:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v13:25.2.0|    |    +--- com.androID.support:support-annotations:25.2.0 -> 25.3.1|    |    \--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    \--- com.androID.support:design:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v13:25.2.0|    |    +--- com.androID.support:support-annotations:25.2.0 -> 25.3.1|    |    \--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    \--- com.androID.support:design:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    +--- com.androID.support:support-v13:25.2.0|    |    +--- com.androID.support:support-annotations:25.2.0 -> 25.3.1|    |    \--- com.androID.support:support-v4:25.2.0 -> 25.3.1 (*)|    \--- com.androID.support:design:25.2.0 -> 25.3.1 (*)

我有什么需要担心的,还是可以安全地忽略此皮棉错误?

解决方法:

它并没有覆盖每个依赖项:com.androID.support:support-v13:25.2.0未更新为25.3.1.

您应该添加编译“ com.androID.support:support-v13:25.3.1”,以确保所有内容都在同一版本上.

总结

以上是内存溢出为你收集整理的我是否可以忽略“不兼容的Gradle版本”棉绒检查,如果Gradle覆盖了Transtivie依赖项?全部内容,希望文章能够帮你解决我是否可以忽略“不兼容的Gradle版本”棉绒检查,如果Gradle覆盖了Transtivie依赖项?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1121022.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存