新建的项目把 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' }
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)