My Android Studio is complaining about
Can’t start Git:
Probably the path to Git executable is not valid
although I can actually use git in android studio, and
/usr/bin/git works in terminal.
How do I get rid of this false error
Here is my ~/.bash_profile
It is probably a permission issue on AS side. You could try to symlink
/user/local/bin/git and make AS pointing to the symlink.
If you’re on Mac OSX, run
sudo xcodebuild -license in the Terminal. It will show a wall of text. Carefully read the license 😉 and keep pressing Space until you reach the end and then simply type
agree and hit enter. This fixed the above error for me on Android Studio.
On some occasions even that might not fix this issue. Try running the following command in the Terminal and restart Android Studio.
Fixed it.. There was no Xcode installed on my mac.
Installed it from command line
It will ask for prompt to install accept and install
After update Xcode to 7.0 my Android Studio complained about Git and the solution for me was go to terminal and type
sudo git --version
This will show you this message:
You have not agreed to the Xcode license agreements.You must agree to
both license agreements below in order to use Xcode.
at the final you have to agree the license
By typing ‘agree’ you are agreeing to the terms of the software
In order to find the git path:
First you need to accept the license
xcodebuild -license accept
In my case i downloaded an update of Xcode and didn’t remember to Accept the New License Agreement/Terms and Conditions. So i just started the Xcode and Agreed to New License Agreement and it started working.