安卓开发中的mave镜像设置
抵达项目根部的build.gradle文件中,将下方有关maven添加进去即可:
buildscript { repositories { maven { url ‘http://maven.aliyun.com/nexus/content/groups/public/‘ } maven { url ‘http://maven.aliyun.com/nexus/content/repositories/jcenter‘ } maven { url ‘http://maven.aliyun.com/nexus/content/repositories/google‘ } maven { url ‘http://maven.aliyun.com/nexus/content/repositories/gradle-plugin‘ } google() jcenter() } dependencies { classpath ‘com.android.tools.build:gradle:3.2.1‘ } } allprojects { repositories { maven { url ‘http://maven.aliyun.com/nexus/content/groups/public/‘ } maven { url ‘http://maven.aliyun.com/nexus/content/repositories/jcenter‘ } maven { url ‘http://maven.aliyun.com/nexus/content/repositories/google‘ } maven { url ‘http://maven.aliyun.com/nexus/content/repositories/gradle-plugin‘ } google() jcenter() } }
相关推荐
水果篮 2016-10-23
Topbeyond 2020-08-21
随心而作 2020-06-04
VanTYS 2020-06-03
liyansring 2020-06-01
chenjia00 2020-03-07
kuzilala 2020-01-24
糊一笑 2020-01-17
iamplane 2019-12-29
gongzhiyao0 2011-07-27
咏月东南 2019-11-03
啦啦啦啦啦 2017-11-10
lilygg 2017-11-09
libowenhit 2011-04-22
aobaxiaoli 2019-08-22
zousongshan 2014-05-04
wacsdn 2011-08-12
itmale 2015-07-11