Build was configured to prefer settings repositories over project repositories but repository 'fl...

解决:

方法一:删除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 settings repositories over project repositories but repository 'fl...)