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

Could not get resource 'https://jcenter.bintray.com/com/

错误示例:

 > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.3.1/gradle-1.3.1.pom'.
               > Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.3.1/gradle-1.3.1.pom'.
 

解决办法

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

buildscript {
...
    repositories {
        jcenter()
        maven { url 'https://jitpack.io' }
        jcenter{ url "http://jcenter.bintray.com/"}
      }
}
改为

buildscript {
    repositories {
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        jcenter { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
    }

}
 

你可能感兴趣的:(Android)