// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.6.0' repositories { google() // jcenter()//已经不能使用了 maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' } maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' } maven { url 'https://repo1.maven.org/maven2/' } mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:8.7.3' classpath "com.android.tools.build:gradle-experimental:0.11.1" classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() // jcenter()//已经不能使用了 maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' } maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' } maven { url 'https://repo1.maven.org/maven2/' } mavenCentral() } } task clean(type: Delete) { delete rootProject.buildDir }