android - 无法解析 com.android.support :support-compat:25. 4.0

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

我正在尝试包括 this通过将库添加到我的项目中

compile 'jp.wasabeef:recyclerview-animators:2.2.7'

依赖项。当 graddle sync 发生时,会产生如下错误

Failed to resolve com.android.support:support-recycleriew-v7:25.4.0

Failed to resolve com.android.support:support-compat:25.4.0

Failed to resolve com.android.support:support-core-ui:25.4.0

gradle 依赖看起来像

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:recyclerview-v7:25.4.0'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.volley:volley:1.0.0'
compile 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
compile 'com.fasterxml.jackson.core:jackson-core:2.8.5'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.8.5'
compile 'com.android.support:support-core-ui:25.4.0'
compile 'com.android.support:support-compat:25.4.0'
compile 'jp.wasabeef:recyclerview-animators:2.2.7'

}

这里有什么问题吗?

最佳答案

Failed to resolve com.android.support:support-recycleview:25.4.0

没有该名称的库。有 com.android.support:recyclerview-v7:25.4.0

Failed to resolve com.android.support:support-compat:25.4.0
Failed to resolve com.android.support:support-core-ui:25.4.0

这些在新的 Google Maven 存储库中。将 maven { url "https://maven.google.com"} 添加到您的 repositories 闭包中,如 the documentation 所示.

关于android - 无法解析 com.android.support :support-compat:25. 4.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44999162/

相关文章:

android - 按密度拆分的 APK 仍包含所有资源

Android Studio 1.0 Gradle 错误与 getConfiguration()

android - 在屏幕旋转期间保存 BottomNavigationView 所选项目

android - Android wear 模块中的“意外命名空间前缀 "app"”

android - 使用 Android Studio 初始化 MobileAds.initialize 时突然出错

java - 查找不存在的布局

android - OutlinedBox TextInputLayout 和重心?

android - 尝试添加广告时,Gradle 构建无法编译

android - 如何将特定的 github PR 编译到我的 Android Studio 项目中 - 等级错误 : Failed to resolve

android - SwipeRefreshLayout 从 support21 force 到旧样式