skip to Main Content

Error occurred while cloning repository in Android Studio

error: unable to read askpass response from
‘C:UsersUserAppDataLocalGoogleAndroidStudio2021.1tmpintellij-git-askpass-local.sh’
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username

5

Answers


  1. Chosen as BEST ANSWER

    Resolved above issue with below steps:

    1. Click on the File Menu of Android Studio -> Settings -> Expand Version Control
    2. Inside Version Control, select Git & Check Use Credential Helper

    enter image description here


  2. You can check in Use credential helper which helps you check your credential and if you didn’t set up that before it would send you a question to login for create credential.
    [1]: https://i.stack.imgur.com/IFG8x.png

    Login or Signup to reply.
  3. I simply resolved it by doing Invalidate Caches and Restart.

    In Android Studio, Click on File > Invalidate Caches... > tick all checkboxes > Click Invalidate and Restart

    Login or Signup to reply.
  4. I simply resolved it by doing Invalidate Caches and Restart.

    In Android Studio, Click on File > Invalidate Caches… > tick all checkboxes > Click Invalidate and Restart

    this worked for me.

    Login or Signup to reply.
  5. 1- clean your project
    2- make invalid cash and restart your project
    3- make sure you select the clean cash

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search