注释google()和jcenter,使用阿里云的
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
allprojects {
repositories {
// google()
// jcenter()
maven { url 'https://jitpack.io' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}
}
repositories {
// google()
// jcenter()
maven { url 'https://jitpack.io' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
//添加阿里
maven { url 'https://maven.aliyun.com/repository/google' }//
maven { url 'https://maven.aliyun.com/repository/jcenter' }//
}