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

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

问题描述

我收到如下错误:

<块引用>

更新失败调用失败来自服务器的意外响应:未经授权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 并开始工作.在此处查看用户界面:

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

解决方案

此问题已在 Android Studio 3.6.1 中解决.我通过从 3.6 更新到 3.6.1 来验证它并且 git 按预期工作

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

<块引用>

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

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

I am getting error as mentioned below:

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 -> 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

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

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

解决方案

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 version control authentication issue resolved

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天全站免登陆