原文地址
https://www.sunzhongwei.com/android-studio-settings-gradle-switching-source-in-china
在项目的根目录下找到settings.gradle文件,然后进行下列更改:
pluginManagement {
repositories {
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyRes

最低0.47元/天 解锁文章
2277

被折叠的 条评论
为什么被折叠?



