The Mac system was updated today and then stepped on the pit.
Start Androidstudio tip in the upper right corner:
start git: /usr/bin/git probably the path to git executable is not valid . `fix it`.
Click on fix it
the test hint behind the top-most path address:
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
Look for a lap. Many developers have encountered this problem. It is said that every version of Apple updates will have this problem, because each time a new update is installed, Xcode is uninstalled .... No more talking about solutions.
Using the Xcode command-line tool that was reinstalled by the terminal (in fact, it was installed Command lines Tools,command
Tools is a tool in Xcode)
xcode-select --install
Mac updates the system after Git is not available, prompting missing Xcrun at