1 // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 3 buildscript { 4 repositories { 5 jcenter() {url "https://maven.aliyun.com/repository/jcenter"} 6 maven {url ‘https://maven.aliyun.com/repository/google/‘} 7 } 8 dependencies { 9 classpath ‘com.android.tools.build:gradle:4.1.0‘ 10 11 // NOTE: Do not place your application dependencies here; they belong 12 // in the individual module build.gradle files 13 } 14 } 15 16 allprojects { 17 repositories { 18 jcenter() {url "https://maven.aliyun.com/repository/jcenter"} 19 maven { url ‘https://maven.aliyun.com/repository/google/‘ } 20 } 21 } 22 23 task clean(type: Delete) { 24 delete rootProject.buildDir 25 }