Android Studio中配置aliyun maven库
在项目的根build.gradle里面(不是module)buildscriptde对应位置添加配置:
buildscript {repositories {maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'allowInsecureProtocol = true}maven {url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'allowInsecureProtocol = true}maven {url 'http://maven.aliyun.com/nexus/content/repositories/google'allowInsecureProtocol = true}maven {url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin'allowInsecureProtocol = true}google()jcenter()}}allprojects {repositories {maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'allowInsecureProtocol = true}maven {url 'http://maven.aliyun.com/nexus/content/repositories/google'allowInsecureProtocol = true}maven {url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin'allowInsecureProtocol = true}google()jcenter() }
}
IDEA设置阿里云maven仓库镜像mirror_阿里云mirror-CSDN博客IDEA设置阿里云maven镜像mirror。重启项目,同步maven即可。https://blog.csdn.net/zhangphil/article/details/126898427