Failed to resolve: support-core-utils & Failed to resolve: appcompat

今日运行 Android Studio 项目时候报了个 Failed to resolve 错误;

解决方法:

把 allprojects 中 添加 maven { url 'https://maven.google.com' }

allprojects {
    repositories {
        maven { url 'https://maven.google.com' }
        jcenter()
        maven { url "https://jitpack.io" }
        maven { url 'http://developer.huawei.com/repo/' }
        mavenCentral() // add repository
        google()
    }
}

注意:需把 maven { url 'https://maven.google.com' } 放到最上边。

你可能感兴趣的:(Failed to resolve: support-core-utils & Failed to resolve: appcompat)