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

android studio 编译时碰上了

 > 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'.

 

这样子的bug。

 

解决办法

修改项目根目录下的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' }
    }

}
相关推荐
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页