java - Gradle:com.android.support:support-compat:25.3.1 和 com.android.support:animated-vector-drawable:24.0.0 必须使用完全相同的版本

标签 java android gradle android-gradle-plugin android-support-library

关于我的 Gradle 文件中的以下“complie”:

dependencies {   
    compile 'com.android.support:support-v4:25.3.1' 
}

我遇到了以下错误:

*All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.3.1, 24.0.0. Examples include com.android.support:support-compat:25.3.1 and com.android.support:animated-vector-drawable:24.0.0.

There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion.)*

但我没有在我的项目中找到任何对此“动画 vector 可绘制”库的使用引用(使用搜索工具)。

知道如何解决这个问题吗?

谢谢!

最佳答案

只需在您的应用程序 gradle 文件中添加这一行

compile 'com.android.support:animated-vector-drawable:25.3.1'

关于java - Gradle:com.android.support:support-compat:25.3.1 和 com.android.support:animated-vector-drawable:24.0.0 必须使用完全相同的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43608933/

相关文章:

java - 配置到 Nexus 时,m2eclipse 插件搜索没有给出结果

java - JGraphX - 展开/折叠单元格/顶点

java - 我如何使用 DynamoDB 的 IN 条件

java - 如何在 Spring Boot + Angular 2 项目中使用 Gradle 构建将静态文件添加到 jar

android - Android 2.1中的ActivityInstrumentationTestCase2有问题吗?

android - 将用户密码存储在 FirebaseDatabase 中是个好主意吗?

android单选列表选择问题?

android - 无法解析 android 支持库 v7-appcompat

android - 'Gradle项目同步失败。基本功能将无法正常工作。”我该如何解决?

spring-boot - 将spring-data-jpa添加到gradle文件后出错?