且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法在 android studio 3.6 中 git pull

更新时间:2023-11-07 22:58:40

此问题已在 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.