Cannot resolve external dependency com.android.tools.build:aapt2:4.0.1-6197926 because no repositori

在 gradle 里面加上这个

allprojects {
    repositories {
        google()
        jcenter()
        maven {
            url "http://maven.aliyun.com/nexus/content/repositories/releases"
        }
        maven{
            url "https://oss.sonatype.org/content/groups/public"
        }
    }
}

你可能感兴趣的:(android,studio)