一起学习交流~

更换国内镜像仓库

android laomuji 6个月前 (04-10) 292次浏览 已收录 0个评论

build.gradle
修改buildscript中的repositories

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
//        google()
//        mavenCentral()
        maven {url'https://maven.aliyun.com/repository/google'}
        maven {url'https://maven.aliyun.com/repository/central'}
    }
    dependencies {
        classpath "com.android.tools.build:gradle:7.0.2"

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

task clean(type: Delete) {
    delete rootProject.buildDir
}
喜欢 (0)
订阅评论
提醒
guest
0 评论
内联反馈
查看所有评论