【Android Studio】git pull 时遇到askpass 问题的解决方法

340 阅读1分钟

问题场景

命令行使用 git pull是OK的,但在Android Studio中pull怎么也拉不下来,出现这种错误

unable to read askpass response from
 ‘/Users/…/Library/Caches/Google/AndroidStudio2021.1
 /tmp/intellij-git-askpass-local.sh’ could not read Username for ‘*’:
  Device not configured

推断应该是Android Studio的账号凭证有问题

解决方法

image.png

打开Preferences -> Version Control -> Git

勾选Use credential helper即可