新建的项目把 project中的build.gradle 放在了Seeting.gradle
Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle'
替换
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
jcenter()
// JitPack 远程仓库:https://jitpack.io
maven { url 'https://jitpack.io' }
}
}