加速glidle下载的阿里资源

项目根目录根目录build.gradle文件中改为:
repositories {
    // 改为阿里云的镜像地址
    maven { setUrl("https://maven.aliyun.com/repository/central") }
    maven { setUrl("https://maven.aliyun.com/repository/jcenter") }
    maven { setUrl("https://maven.aliyun.com/repository/google") }
    maven { setUrl("https://maven.aliyun.com/repository/gradle-plugin") }
    maven { setUrl("https://maven.aliyun.com/repository/public") }
    maven { setUrl("https://jitpack.io") }
    gradlePluginPortal()
    google()
    mavenCentral()
    mavenLocal()
}
repositories {
    // 改为阿里云的镜像地址
    maven { setUrl("https://maven.aliyun.com/repository/central") }
    maven { setUrl("https://maven.aliyun.com/repository/jcenter") }
    maven { setUrl("https://maven.aliyun.com/repository/google") }
    maven { setUrl("https://maven.aliyun.com/repository/gradle-plugin") }
    maven { setUrl("https://maven.aliyun.com/repository/public") }
    maven { setUrl("https://jitpack.io") }
    google()
    mavenCentral()
}

你可能感兴趣的:(Android,android,android,studio,gradle,阿里云镜像)