Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to git pull in android studio 3.6

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.

enter image description here

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

enter image description here

like image 889
AnV Avatar asked Feb 26 '20 10:02

AnV


1 Answers

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.

like image 111
AnV Avatar answered Oct 27 '22 04:10

AnV