android studio使用中科大镜像源的完整settings.gradle文件备份

发布时间:2026/8/20 19:52:15
android studio使用中科大镜像源的完整settings.gradle文件备份 pluginManagement { plugins { id(com.android.application) version 9.12.0 // 使用稳定版本 id(com.android.library) version 8.13.2 // 如果你用了 Kotlin也加上 // id(org.jetbrains.kotlin.android) version 2.0.21 } repositories { google { content { includeGroupByRegex(com\\.android.*) includeGroupByRegex(com\\.google.*) includeGroupByRegex(androidx.*) } } maven { url uri(https://mirrors.ustc.edu.cn/maven/) } mavenCentral() gradlePluginPortal() } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() maven { url uri(https://mirrors.ustc.edu.cn/maven/) } mavenCentral() } } rootProject.name INSPIRET include :app include :sdk前几天清华源不是因为本地有人网络攻击--------可能就是个爬虫导致本地城域网ip被拉黑吗所以现在使用备用方案中科大源另外腾讯源不要用因为他也是开发软件的我们也是开发软件的利益不一致。成功启动说明没问题。说明需要添加官网作为兜底因为有些文件可能没有。一定添加mavencentral()--------代码里面已经添加了