【发布时间】:2020-06-10 05:27:22
【问题描述】:
我收到如下所述的错误:
更新失败 调用失败来自服务器的意外响应:未经授权 java.lang.RuntimeException:调用失败来自服务器的意外响应:未经授权 在 org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNativeSshAskPassXmlRpcClient.java:34) 在 org.jetbrains.git4idea.nativessh.GitNativeSshAskPassApp.main(GitNativeSshAskPassApp.java:30) 引起:java.io.IOException:来自服务器的意外响应:未经授权 在 org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:231) 在 org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90) 在 org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72) 在 org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194) 在 org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185) 在 org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178) 在 org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNat
在以前的版本中,我设法修复它:
AndroidStudio -> Preferences -> Git -> SSH Executable 并从 Native 更改为 Built-in 并开始工作。在此处查看用户界面:https://i.stack.imgur.com/KCvHA.png
但在 android studio 3.6 中,我在设置中看不到上述选项。
我还使用右上角的 Test 按钮测试了 git。 Git 正在成功执行。
【问题讨论】:
-
我也有这个问题。这太可怕了,我现在找不到任何解决方法。我发现了几天前重新打开的 Google 问题:issuetracker.google.com/issues/124680708
-
我也有同样的问题
-
我也是。我打算使用来自 git 的本教程添加新的 ssh 证书...help.github.com/en/github/authenticating-to-github/… 但在我的情况下,我发现只需执行第 3 步...将您的 SSH 私钥添加到 ssh-agent $ ssh-add -K ~/.ssh/id_rsa 然后尝试 android studio 似乎解决了这个问题。
-
我还想补充一点,
git pull和git push正在终端工作,在项目目录中执行。 -
但是如果我没有 SSH 密钥并且我正在使用密码验证呢?
标签: android git android-studio intellij-idea android-studio-3.6