// Top-level build file where you can add configuration options common to all sub-projects/modules. // 引入自定义Gradle配置文件 apply from: "config.gradle" buildscript { repositories { google() // jcenter() mavenCentral() mavenLocal() maven { url 'https://jitpack.io' } maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'} maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" } } dependencies { classpath "com.android.tools.build:gradle:4.1.1" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() // jcenter() mavenCentral() mavenLocal() maven { url 'https://jitpack.io' } maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'} maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" } } } task clean(type: Delete) { delete rootProject.buildDir }