Mac 升级系统后导致的Android Studio无法找到Git

升级OS系统后,启动Android Studio,居然弹出这么一句话:

Can't start Git: /usr/bin/git
Probably the path to Git executable is not valid. Fix it. (show balloon)

有的时候,下面有两个按钮:Download和Config 。

由于我疏忽没有及时截图,麻烦大家臆想一下。

这个时候,大家不要方,不要去点Download或者Config。即使跳转到git官网下载安装了git也没有用,或者点击Config跳到AS的git设置页面也只能看看。

解决办法很简单,执行这个命令:   xcode-select --install  。  此时会弹出一个对话框:

点击“安装”,等待安装完成,重启Android Studio,即可解决。

猜你喜欢

转载自blog.csdn.net/Low_pro_viction/article/details/83339194