Android Studio 国内镜像源设置
gradle-wrapper.properties
#Mon Dec 09 10:36:42 CST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
settings.gradle.kts
pluginManagement {
repositories {
maven { setUrl("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/") }
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") }
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
maven { setUrl("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/") }
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") }
mavenCentral()
}
}
rootProject.name = "My Application"
include(":app")
http proxy
https://mirrors.aliyun.com/android.googlesource.com/
manual proxy configuration
http://mirrors.opencas.cn 端口:80
发表评论 (审核通过后显示评论):