Android Studio fastutil.jar 一直在sync

因为fastutil.jar文件需要翻墙才能sync成功,所以需要在build.gradle中添加aliyun的服务器地址

buildscript {
repositories {
maven{ url = "http://maven.aliyun.com/nexus/content/groups/public/" }
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
maven{ url = "http://maven.aliyun.com/nexus/content/groups/public/" }
google()
jcenter()

}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

猜你喜欢

转载自www.cnblogs.com/yuzhengya/p/12064795.html