小编典典

如何修复调用失败的服务器意外响应:Android Studio中未经授权

java

我在Gitlab上有一个项目,最近几天我一直在处理它!

现在我想 pull 在家用PC上进行项目,但显示以下错误:

Invocation failed Unexpected Response from Server:  Unauthorized
        java.lang.RuntimeException: Invocation failed Unexpected Response from Server:  Unauthorized
        at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNativeSshAskPassXmlRpcClient.java:34)
        at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassApp.main(GitNativeSshAskPassApp.java:30)
        Caused by: java.io.IOException: Unexpected Response from Server:  Unauthorized
        at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:231)
        at org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90)
        at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)

我的Android Studio版本是 3.4


阅读 365

收藏
2020-12-03

共1个答案

小编典典

设法像这样修复它:

AndroidStudio->首选项-> Git-> SSH可执行文件,从更改NativeBuilt-in,它开始工作。

编辑:这是为Android Studio 3.4,为3.6 Volodymyr有一个下面的答案。

2020-12-03