解决Could not resolve all artifacts for configuration ':classpath'.

解决:在项目外部的build.gradle中增加

maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }

buildscript {
    repositories {
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        google()
        jcenter()
    }
}

版权声明:本文为u013363872原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。