Created
November 16, 2025 01:53
-
-
Save robinvanyang/6f115b889ac0bf3edeed92871e52ed08 to your computer and use it in GitHub Desktop.
android项目设置代理
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //gradle-wrapper.properties | |
| distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.14.2-bin.zip | |
| //settings.gradle.kts | |
| pluginManagement { | |
| repositories { | |
| // 阿里云镜像(优先) | |
| maven { url = uri("https://maven.aliyun.com/repository/google") } | |
| maven { url = uri("https://maven.aliyun.com/repository/central") } | |
| maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") } | |
| // 腾讯云镜像(备选) | |
| maven { url = uri("https://mirrors.cloud.tencent.com/repository/google") } | |
| maven { url = uri("https://mirrors.cloud.tencent.com/repository/central") } | |
| //官方仓库 | |
| google { | |
| content { | |
| includeGroupByRegex("com\\.android.*") | |
| includeGroupByRegex("com\\.google.*") | |
| includeGroupByRegex("androidx.*") | |
| } | |
| } | |
| mavenCentral() | |
| gradlePluginPortal() | |
| } | |
| } | |
| dependencyResolutionManagement { | |
| repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) | |
| repositories { | |
| // 阿里云镜像(优先) | |
| maven { url = uri("https://maven.aliyun.com/repository/public") } | |
| maven { url = uri("https://maven.aliyun.com/repository/google") } | |
| // 腾讯云镜像(备选) | |
| maven { url = uri("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/") } | |
| google() | |
| mavenCentral() | |
| } | |
| } | |
| rootProject.name = "My Application" | |
| include(":app") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment