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() }}
来源地址:https://blog.csdn.net/zhangphil/article/details/130264177