android - 无法解决:com.android.support:cardview-v7:26.0.0 android

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

我尝试将recyclerview添加到我的项目中,并出现此错误,并且我从android studio依赖项中添加了它
this is error appear when try to add recyclerview in android studio

this is the compiled version ...

最佳答案

从支持库的版本26开始,请确保repositories部分包括带有“https://maven.google.com”端点的maven部分。

就像是;

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

关于android - 无法解决:com.android.support:cardview-v7:26.0.0 android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47708873/

相关文章:

android - 在 AndroidManifest.xml 中单独使用 intent.category.HOME 与同时使用 intent.category.DEFAULT 之间的区别

使用 GSON 库和 ProGuard 时 Android 崩溃

Android Studio gradle 从服务器收到状态代码 400 : Bad Request

android - gradle中依赖项的动态版本(使用+)

android - 如何检测用户点击了插页式广告?

android - RecyclerView如何处理不同 View 的回收?

android - 从 Android 中的 RecyclerView 中删除焦点指示器

android - 如何防止 RecyclerView 项目在 notifyItemChanged(pos) 后闪烁?

android - Android Studio重复的zip条目transformClassesAndResourcesWithProguard

java - Gradle 依赖关系树中星号和箭头符号的含义