启动AndroidStudio 右上角提示:

can't start git: /usr/bin/git 
probably the path to git executable is not valid . `fix it`.
  • 1
  • 2

点击fix it后 点击最上边路径地址后边的test提示:

errors while executing git -- version. exitCode=1 
errors: xcrun: error : invalid active developer path(/library/developer/commandlinetools),missing xcrun at:
/library/developer/commandlinetools.usr/bin/xcrun
  • 1
  • 2
  • 3

找了一圈。。很多开发者都遇到过这问题。据说苹果每个版本的更新都会有这样的问题,原因是每次安装新的更新后,Xcode都被卸载了。。。。不扯别的说解决方案。


通过终端重新安装的Xcode命令行工具使用(其实这里安装的是Command Line Tools,Command Line 
Tools是在Xcode中的一款工具)

xcode-select --install

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-09-29
  • 2021-12-16
猜你喜欢
  • 2021-12-08
  • 2021-05-14
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
相关资源
相似解决方案