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 { ...
将本项目的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://ma...