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
Resolved above issue with below steps:
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
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
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.
1- clean your project
2- make invalid cash and restart your project
3- make sure you select the clean cash