I get this error in Android Studio:
Can\'t start Git: /usr/bin/git Probably the path to Git executable is not valid.
I my case I've changed the name of Xcode app to Xcode9 and renamed later to Xcode.
I needed to update my Xcode.app path.
After typing sudo xcode-select --switch /Applications/Xcode.app on terminal everything worked fine again
sudo xcode-select --switch /Applications/Xcode.app