今天发现在项目根目录写allprojects 之后报错了
allprojects {
repositories {
...
maven { url 'https://www.jitpack.io' }
}
}
报错Build was configured to prefer settings repositories over project repositories but repository
查了一下7.0版本后的gradle写法变了
找到项目的settings.gradle
在这个地方加

网友评论