Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] Not able to git push or pull in android studio 3.6

Posted on November 11, 2022 By

Solution 1 :

WORKAROUND:
1. In Android Studio go to Help - Find Action - Registry...
2. Find git.use.builtin.ssh and enable it
3. Check that git works again

Solution 2 :

Not straight solution – but you can change your git url from ssh to https, and it will work.

git remote set-url origin YOUR_REPOSITORY_HTTPS_URL

Solution 3 :

I have found an alternative way to make SSH actually work…
rate up if it worked for you!!!

using putty plink for ssh instead of the Git ssh(openSSH)

1.set the system env-variable GIT_SSH and let it point to plink.exe
download links available here: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

2.start pageant and add your private key to it (needs to be converted to another format to be used)(use puttygen to convert id_rsa to ppk)

3.use command in terminal based on github or gitlab : plink -v [email protected] or plink -v [email protected]

congrats now you can work with ssh

Problem :

I’m getting the following error while trying to push or pull or anything with ssh in android studio 3.6

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

looks like the problem is with native ssh and we cannot change it to built-in like previous versions… how to fix this ???

any help would be appreciated

Comments

Comment posted by stackoverflow.com/questions/60412242/…

I have the same issue, other question on this here:

Comment posted by Adrian Romanelli

Might want to reconsider this answer based on the description for that value: “Builtin client is outdated and does not support modern security keys, it is not recommended to use it.”

READ  [FIXED] android - Firestore boolean returns false when its set up to true
Powered by Inline Related Posts

Comment posted by Mehrdad

I know … my question was how to make ssh work… thanks anyway

Comment posted by 0ne_Up

This will set your remote URL, but has nothing to do with the issue of git not working in Android Studio.

Comment posted by 0ne_Up

This doesn’t answer the question, you are providing some workaround, but the question was how to make it work in Android Studio. I can also push/pull from the terminal.

Comment posted by Mehrdad

@0ne_Up check the latest answer

Comment posted by Mehrdad

but this one makes it work in Android Studio… it makes SSH work like before IN Android Studio

Android Tags:android, android-studio, android-studio-3.0, git

Post navigation

Previous Post: [FIXED] Xamarin.forms – Trouble behaviour between ListView & keyboard
Next Post: [FIXED] android – two elements in linear layout are packed to center instead of to the sides

Related Posts

[FIXED] Android SQLite query string to reach to D in A~B~C~D~E~F where A,B,C,D,E and F could have any interested length and data Android
[FIXED] android – View does not have a NavController set when using Fragment Factory and Navigation Component Android
[FIXED] installation – How to install Google Fit app in Android Emulator? Android
[FIXED] java – Download Image from Url and covert into byte array – android Android
[FIXED] android – InstrumentClusterRenderingService cannot recognize my navigation App Android
[FIXED] Scroll Outer Scroll View Before Inner Scroll View – Android Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What is a good substitute for condensed milk?
  • ¿Como el cuerpo te avisa cuando te va a dar un infarto?
  • What is the luxury brand of Jaguar?
  • Who is Big poppa baseball player?
  • What material are foam runners?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme