gradle download https//jcenterが特に遅い問題
1035 ワード
1.gradleのダウンロードの时はとても遅くて、あなたが知っている原因のため、アリは1件の良いことをして、あなたはあなたのbuild.gradle (project : ....)
一つ目は、間違えないように
2.コードを直接付けた
一つ目は、間違えないように
2.コードを直接付けた
buildscript {
repositories {
google()
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}