androidstuidio gradle更新失败解决方法
使用阿里云的镜像库:http://maven.aliyun.com/nexus/content/groups/public/ 具体配置如下buildscript {
repositories {
// google()
// jcenter()
maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
// google()
// jcenter()
maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
}
页:
[1]