在工程的settings.gradle中添加
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
//阿里云镜像
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
}