在Project/build.gradle脚本 配置 maven{ url'http://maven.aliyun.com/nexus/content/groups/public/'}
buildscript {
repositories {
google()
maven{ url'http://maven.aliyun.com/nexus/content/groups/public/'}
jcenter()
}
}
allprojects {
repositories {
google()
maven{ url'http://maven.aliyun.com/nexus/content/groups/public/'}
jcenter()
}
}
注意必须在jcenter()方法之上