repository ‘Gradle Libs‘ was added by unknown code
Posted 良秋
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了repository ‘Gradle Libs‘ was added by unknown code相关的知识,希望对你有一定的参考价值。
问题
Build was configured to prefer settings repositories over project repositories but repository ‘Gradle Libs’ was added by unknown code
解决
settings.gradle中,去除repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
dependencyResolutionManagement {
// repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
以上是关于repository ‘Gradle Libs‘ was added by unknown code的主要内容,如果未能解决你的问题,请参考以下文章
repository ‘Gradle Libs‘ was added by unknown code
repository ‘Gradle Libs‘ was added by unknown code