我在Gitlab上有一个项目,在过去的几天里我一直在使用它!
现在,我希望在我的家庭PC上的pull项目,但显示给我下面的错误:
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)我的安卓工作室版本是3.4!
发布于 2019-04-23 13:20:36
设法像这样修复它:
AndroidStudio -> Preferences -> Git -> SSH可执行,并从Native更改为Built-in,并开始工作。
编辑:这是用于AndroidStudio3.4,3.6 Volodymyr有一个答案如下。
发布于 2020-04-09 11:32:28
启用凭据助手为我工作,在Windows 10上使用Android 3.6.2
AndroidStudio -> File -> Settings -> Git -> Use credential helper
发布于 2019-04-24 12:36:11
我也有过同样的问题。通过将SSH私钥添加到命令行中的ssh代理中,对其进行了修正:
$ ssh-add -K ~/.ssh/id_rsa另外,检查Git设置是否设置为本机
Settings --> Version Control --> Git在SSH executable:下拉列表中,选择Native
编辑它是在最新版本3.6.1的Android https://androidstudio.googleblog.com/2020/02/android-studio-361-available.html中修复的
https://stackoverflow.com/questions/55783219
复制相似问题