jcenter(),google()导入项目后编译不过?加上这三句话
作者:互联网
uildscript {
repositories {
// jcenter()
// google()
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
// jcenter()
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
}
}
把jcenter和google()注释掉,其他地方把这三句话加进去
标签:content,google,三句话,jcenter,nexus,maven,aliyun,com 来源: https://blog.csdn.net/weixin_44068690/article/details/116932970