Android Studio 2022.3.1版本修改maven下载路径
找到
settings.gradle.kts输入如下的信息中的1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20pluginManagement {
repositories {
// add maven url
maven(url = "https://maven.aliyun.com/repository/google")
maven(url = "https://maven.aliyun.com/repository/public")
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
// add maven url
maven(url = "https://maven.aliyun.com/repository/google")
maven(url = "https://maven.aliyun.com/repository/public")
google()
mavenCentral()
}
}