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

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

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”,以确保所有内容都在同一版本上.

相关文章

安装环境都很简单,就是下载工具需要在华为开发者联盟里注册...
上传的方式有两种,第一种是通过bintray官方出的插件bintray...
转载自: 完美解决Error:SSLpeershutdownincorrectly打开gr...
https://www.jianshu.com/p/9220227cdfb3buildscript{ext.ko...
Markdown版本笔记我的GitHub首页我的博客我的微信我的邮箱My...
 跟着教程做的,已经有了JDK,直接进行后面的步骤,下载安装...