无法获取 https://jcenter.bintray.com/com/ 网站的资源


无法获取 https://jcenter.bintray.com/com/ 网站的资源

修改项目根目录下的build.gradle

1
2
3
4
5
6
7
8
buildscript {
...
repositories {
jcenter()
maven { url 'https://jitpack.io' }
jcenter{ url "http://jcenter.bintray.com/"}
}
}

改为

1
2
3
4
5
6
7
buildscript {
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
jcenter { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
}

}