Gradle download slow solution – use a domestic image for acceleration

  1. Open the project file root directory build.gradle
  2. In the repositories of buildscript and allprojects respectively commented jcenter (), and use the mirror to replace domestic: maven {url ‘maven.aliyun.com/nexus/conte…
  3. Add maven{url “jitpack.io”} to BuildScript repositories: maven{url “jitpack.io”}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    ext {
        kotlin_version = '1.3.72'
    }
    repositories {
        maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
        maven{url "https://jitpack.io"}
        google()
// jcenter()
    }
    dependencies {
        classpath "Com. Android. Tools. Build: gradle: 4.0.1." "
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        // 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
}
Copy the code