今天mac升级下,结果Androidstudio报probably the path to git executable is not valid这个错误,按照提示打开设置的弹框,但是里边的设置(/usr/bin/git)都是之前设置好的没有改变,在网上找了下解决方法,问题得到了解决;
1.先执行sudo git --version在Terminal中;
2.会提示错误:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun;
3.执行xcode-select --install;
4.会有一个弹框,同意安装后就可以了。
以上方案借鉴于:https://stackoverflow.com/questions/32661484/os-x-cant-start-git-usr-bin-git-probably-the-path-to-git-executable-is-not
1.先执行sudo git --version在Terminal中;
2.会提示错误:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun;
3.执行xcode-select --install;
4.会有一个弹框,同意安装后就可以了。
以上方案借鉴于:https://stackoverflow.com/questions/32661484/os-x-cant-start-git-usr-bin-git-probably-the-path-to-git-executable-is-not