无法在Android Studio Preview 3.2-beta 1中构建我的项目

时间:2018-07-19 08:57:37

标签: android android-studio

如果我尝试构建应用,Android Studio会引发以下错误。我该如何解决这个错误?任何帮助将不胜感激。

NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))
NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'ManipalClientApp_NoLogoNew'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:3.2.0-beta01.
     Required by:
         project :
      > Could not resolve com.android.tools.build:gradle:3.2.0-beta01.
         > Could not get resource 'https://maven.google.com/com/android/tools/build/gradle/3.2.0-beta01/gradle-3.2.0-beta01.pom'.
            > Could not HEAD 'https://maven.google.com/com/android/tools/build/gradle/3.2.0-beta01/gradle-3.2.0-beta01.pom'. Received status code 407 from server: Proxy Authorization Required
      > Could not resolve com.android.tools.build:gradle:3.2.0-beta01.
         > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.2.0-beta01/gradle-3.2.0-beta01.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.2.0-beta01/gradle-3.2.0-beta01.pom'. Received status code 407 from server: Proxy Authorization Required

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

CONFIGURE FAILED in 0s
Could not HEAD 'https://maven.google.com/com/android/tools/build/gradle/3.2.0-beta01/gradle-3.2.0-beta01.pom'. Received status code 407 from server: Proxy Authorization Required
Enable Gradle 'offline mode' and sync project

1 个答案:

答案 0 :(得分:0)

尝试安装最新版本的gradle并将其与您的项目同步,然后重新启动android studio。