如何修复调用失败的服务器意外响应:Android Studio中未经授权 [英] How to fix Invocation failed Unexpected Response from Server: Unauthorized in Android studio

查看:390
本文介绍了如何修复调用失败的服务器意外响应:Android Studio中未经授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Gitlab 上有一个项目,并且最近几天我一直在使用它!

I have one project on Gitlab and I worked with it for the last few days!

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

Now i want pull project on my home PC but show me below error :

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

My android studio version is 3.4 !

推荐答案

设法解决此问题:

AndroidStudio->首选项-> Git-> SSH可执行文件,从Native更改为Built-in,它开始工作.

AndroidStudio -> Preferences -> Git -> SSH Executable and changed from Native to Built-in and it started working.

这是针对Android Studio 3.4,针对3.6 Volodymyr,下面有一个答案.

this is for Android Studio 3.4, for 3.6 Volodymyr has an answer below.

这篇关于如何修复调用失败的服务器意外响应:Android Studio中未经授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆