我检查了我的代理连接,它看起来很好,但我收到了这个错误:
Could not HEAD 'http://jcenter.bintray.com/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom'. Received status code 407 from server: Proxy Authentication Required
Enable Gradle 'offline mode' and sync project
build.gradle 有这个内容;
buildscript {
repositories {
jcenter() {
url "https://jcenter.bintray.com/"
}
maven { url 'http://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'io.fabric.tools:gradle:1.+'
}
}
如果我直接点击 pom 的链接:http: //jcenter.bintray.com/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom
在 Internet Explorer 或 Chrome 上我都得到了这个:
{
"errors" : [ {
"status" : 404,
"message" : "Could not find resource"
} ]
}
在后台打开此链接:
https://repo.jfrog.org/artifactory/libs-release-bintray/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom%27?referrer
我不认为这是代理错误,而是资源本身不存在于报告的 URL 中。