赞
踩
在项目根目录下的build.gradle的buildscript.repositories及allprojects.repositories闭包内的最前面(Gradle是从上往下寻找的,故要放到jcenter()及google()的前面),添加阿里云仓库服务的代理仓库地址,示例如下:
buildscript { repositories { maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'https://maven.aliyun.com/repository/google' } jcenter() google() } } allprojects { repositories { maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'https://maven.aliyun.com/repository/central' } maven { url 'https://maven.aliyun.com/repository/google' } jcenter() mavenCentral() google() } }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。