本文主要是介绍Android Studio Giraffe解决gradle reload failed问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
settings.gradle.kts中
pluginManagement {repositories {google()mavenCentral()gradlePluginPortal()} }
dependencyResolutionManagement {repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)repositories {google()mavenCentral()} }
各增加三行内容:
pluginManagement {repositories {
maven { url = uri("https://maven.aliyun.com/repository/public") }maven { url = uri("https://maven.aliyun.com/repository/google") }maven { url = uri("https://maven.aliyun.com/repository/jcenter") }google()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://maven.aliyun.com/repository/jcenter") }google()mavenCentral()} }
这篇关于Android Studio Giraffe解决gradle reload failed问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!