我使用的是Android Studio 3.2,几天前一切正常。
现在,我已经将AS更新为3.2.1,并且我无法执行任何gradle命令。
有人在那里遇到过类似的问题吗?
./gradlew clean
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.10/userguide/gradle_daemon.html.
Incremental java compilation is an incubating feature.
NEGOTIATE authentication error: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)
NEGOTIATE authentication error: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)
NEGOTIATE authentication error: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)
NEGOTIATE authentication error: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)
NEGOTIATE authentication error: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)
NEGOTIATE authentication error: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)
这将永远持续下去.......
最佳答案
出现此错误是因为您位于代理之后,并且未在 gradle.properties 下设置代理配置,或者该代理中的身份验证存在问题
systemProp.http.proxyPort=
systemProp.http.proxyUser=
systemProp.http.proxyPassword=
systemProp.https.proxyPassword=
systemProp.https.proxyHost=
systemProp.http.nonProxyHosts=
systemProp.https.proxyPort=
systemProp.https.nonProxyHosts=
systemProp.https.proxyUser=