第一种方法
使用开源中国的maven库
阿里云的(速度飞快):http://maven.aliyun/nexus/content/groups/public/
替换项目根目录下build.gradle中的
repositories {
jcenter()
}
为:
repositories {
maven{url 'http://maven.aliyun/nexus/content/groups/public/'}
}
第二种方法
修改https为 http协议下载http://jcenter/bintray/替换项目根目录下build.gradle中的
repositories {
jcenter()
}
为:
repositories {
jcenter(){ url 'http://jcenter.bintray/'}
}
解决Android studio遇见Could not find common.jar (android.arch.core:common:1.0.0).错误
不知道怎么回事就发生的错误,翻墙找到的解决方法,如下:
Error:Could not find common.jar (android.arch.core:common:1.0.0).
Searched in the following locations:
https://jcenter.bintray/android/arch/core/common/1.0.0/common-1.0.0.jar
修改的位置:Gradle Scripts --->build.gradle(Project:项目名)--->allprojects{}里面;
解决方法:
repositories {
maven{url"https://maven.google"}
jcenter()
maven{url 'https://jitpack.io'}
}
更多推荐
解决android studio引用远程仓库下载慢(JCenter下载慢) Could not download kotlin-gradle-plugin.ja
发布评论