美文网首页
Build was configured to prefer s

Build was configured to prefer s

作者: 老Feynman | 来源:发表于2022-11-02 14:25 被阅读0次

解决:

方法一:删除setting.gradle 里的

dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() } }

方法二:那就继续在setting里添加依赖

原因:gradle 7.0之后加了新模式

https://juejin.cn/post/6997396071055900680#heading-15

相关文章

网友评论

      本文标题:Build was configured to prefer s

      本文链接:https://www.haomeiwen.com/subject/omejtdtx.html