android studio换源
小于 1 分钟
gradle
Android Studio下载gradle太慢可换源
修改 settings.gradle.kts
pluginManagement {
repositories {
maven { url=uri ("https://jitpack.io") }
maven { url=uri ("https://maven.aliyun.com/repository/releases") }
// maven { url 'https://maven.aliyun.com/repository/jcenter' }
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://maven.aliyun.com/repository/public") }
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
maven { url=uri ("https://jitpack.io") }
maven { url=uri ("https://maven.aliyun.com/repository/releases") }
// maven { url 'https://maven.aliyun.com/repository/jcenter' }
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://maven.aliyun.com/repository/public") }
google()
mavenCentral()
}
}
gradle-wrapper.properties 换成对应的版本
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.7-all.zip