赞
踩
将本项目的gradle/init.d/init.gradle复制到USER_HOME/.gradle/下即可。没有该目录及文件/init.d/init.gradle就创建
USER_HOME在Windows上大约为C:/Users/liyujiang/.gradle/,
在Linux上大约为/home/liyujiang/.gradle/。
init.d/init.gradle内容为:
- buildscript {
- repositories {
- maven{ url 'https://maven.aliyun.com/repository/public'}
- maven { url 'https://maven.aliyun.com/repositories/jcenter' }
- maven { url 'https://maven.aliyun.com/repositories/google' }
- maven { url 'https://maven.aliyun.com/repository/central' }
- }
- }
-
- allprojects {
- repositories {
- maven{ url 'https://maven.aliyun.com/repository/public'}
- maven { url 'https://maven.aliyun.com/repositories/jcenter' }
- maven { url 'https://maven.aliyun.com/repositories/google' }
- maven { url 'https://maven.aliyun.com/repository/central' }
- maven { url "https://jitpack.io" }
- }
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。