I get this error in Android Studio:
<Can\'t start Git: /usr/bin/git Probably the path to Git executable is not valid.
sudo xcode-select --reset
in the terminal instantly solved the problem for me.
I got this problem too, because I uninstalled my Xcode.
I solved it with these steps:
Type xcode-select --install
in the terminal (Installs the license)
Download a git and re-install it
After this 2 steps, I can use git commands in the terminal like git
or git --version
.
But when I open the android studio, it still show the error
so we need another two steps:
Type which git
in your terminal (find out the git path)
Configure the path (you got in the step 3) in your android studio , then apply
Just like below pic
It works for me.
You should agree explicitly to user's licence agreement.
This is how you should do it:
sudo xcodebuild -license
That's it! :)
When I installed MacOS Sierra I ran xcode-select --install
and it worked fine
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
Download git from https://git-scm.com after download install it and then in terminal type which git you will get git path
Satishs-MacBook-Air:~ Pathuri$ which git
/usr/local/bin/git
Satishs-MacBook-Air:~ Pathuri$
click on apply and fit it on the pop up it will solve .