Build was configured to prefer settings repositories over project repositories but repository ‘Googl

Build was configured to prefer settings repositories over project repositories but repository ‘Googl,第1张

新建的项目把 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' }


    }
}

 

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/906239.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-15
下一篇 2022-05-15

发表评论

登录后才能评论

评论列表(0条)

保存