// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { //jcenter() //mavenCentral() maven { url "https://maven.aliyun.com/repository/public" } maven { url "https://maven.aliyun.com/repository/google" } //maven { url 'https://maven.google.com' } //google() } dependencies { classpath 'com.android.tools.build:gradle:3.4.2' classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0' } } allprojects { repositories { //jcenter() //mavenCentral() maven { url "https://maven.aliyun.com/repository/public" } maven { url "https://maven.aliyun.com/repository/google" } maven { url "https://jitpack.io" } //google() } } task clean(type: Delete) { delete rootProject.buildDir }