Android Studio从服务器接收到状态代码407:需要代理身份验证

时间:2018-08-06 10:41:18

标签: android maven android-maven-plugin android-gradle-3.1.0

我检查了我的代理连接,看起来还不错 但我收到此错误:

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中不存在资源本身。

0 个答案:

没有答案