我收到了如下所述的错误:
更新失败调用失败来自服务器的意外响应:未经授权的服务器:调用失败的服务器意外响应: org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNativeSshAskPassXmlRpcClient.java:34) at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassApp.main(GitNativeSshAskPassApp.java:30)引起的未授权响应: java.ioorg.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:231):来自服务器的意外响应:未经授权在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)在org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178) at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNat
在以前的版本中,我设法将其修复如下:
AndroidStudio -> Preferences -> Git -> SSH可执行,并从本机更改为内置,并开始工作。参见此处的UI:https://i.stack.imgur.com/KCvHA.png
但是在AndroidStudio3.6中,我看不到上面的设置选项。

我还使用右上角的Test按钮测试了git。Git正在成功执行。

发布于 2020-03-02 12:18:12
这个问题在Android 3.6.1中得到了解决。我通过从3.6更新到3.6.1来验证它,并且git正在按预期工作。
您可以找到发行说明这里。上面写着
解决了Git版本控制身份验证问题 在AndroidStudio3.6的初始版本中,需要在Git版本控制中进行身份验证的操作在IDE中中断。此bug已在3.6.1中修复。有关更多信息,请参见问题#124680708。
发布于 2021-04-09 09:43:01
去-
Android Studio -> Setting-> GitHub如果您不能使用用户名和密码登录,请尝试从GitHub获取令牌-
https://github.com/settings/tokens/new
如果没有新令牌,则生成新令牌。最后使用令牌登录

https://stackoverflow.com/questions/60412242
复制相似问题