无法在Android Studio 3.6中进行git pull [英] Not able to git pull in android studio 3.6

查看:351
本文介绍了无法在Android Studio 3.6中进行git pull的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到如下所述的错误:

I am getting error as mentioned below:

更新失败 调用失败来自服务器的意外响应:未经授权 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

Update failed 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) at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNat

在以前的版本中,我设法像这样修复它:

In previous versions, I managed to fix it like this:

AndroidStudio->首选项-> Git-> SSH可执行文件,从本机"更改为内置",它开始工作.在此处查看用户界面: https://i.stack.imgur.com/KCvHA.png

AndroidStudio -> Preferences -> Git -> SSH Executable and changed from Native to Built-in and it started working. See UI here: https://i.stack.imgur.com/KCvHA.png

但是在android studio 3.6中,我在设置中看不到以上选项.

But in android studio 3.6, I don't see above option in settings.

我还使用右上方的 Test 按钮测试了git. Git执行成功.

I have also tested the git using Test button at top right. Git is executing successfully.

推荐答案

此问题已在Android Studio 3.6.1中解决.我通过从3.6更新到3.6.1进行了验证,并且git可以按预期工作

This issue is resolved in Android Studio 3.6.1. I verified it by updating from 3.6 to 3.6.1 and git is working as expected

您可以在此处找到发行说明.它说

You can find release notes here. It says

Git版本控制身份验证问题已解决

Git version control authentication issue resolved

在Android Studio 3.6的初始版本中,操作需要 IDE中破坏了Git版本控制中的身份验证.这个错误 在3.6.1中已修复.有关更多信息,请参见问题#124680708.

In the initial release of Android Studio 3.6, operations requiring authentication in Git version control were broken in the IDE. This bug has been fixed in 3.6.1. See Issue #124680708 for more information.

这篇关于无法在Android Studio 3.6中进行git pull的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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