在项目下找到 settings.gradle 这个文件,添加以下内容:
pluginManagement { repositories { // 添加阿里云镜像 maven { url = uri("https://maven.aliyun.com/repository/public/") } google() mavenCentral() gradlePluginPortal() } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { // 添加阿里云镜像 maven { url = uri("https://maven.aliyun.com/repository/public/") } google() mavenCentral() } } rootProject.name = "My Application" include ':app'
这时候再 Build 里右键 - Reload 就快多了:
标签:google,提速,uri,maven,阿里,Android,添加 From: https://www.cnblogs.com/z5337/p/18581319