首页 > 解决方案 > 无法解决:com.android.support:cardview-v7:24.2.0

问题描述

Android项目位于以下链接

https://gitlab.com/vandy-aad-2/aad-2-assg-1/

Gradle sync is failing to give the error: Failed to resolve: com.android.support:cardview-v7:24.2.0

尝试更新 SDK 但无法正常工作。

标签: javaandroidandroid-studioandroid-gradle-plugin

解决方案


google()在顶层build.gradle文件的 repos 中添加repo:

allprojects {
    repositories {
        google()
        jcenter()
    }
}

推荐阅读