My Android Studio is complaining about
Can't start Git: /usr/bin/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
export PATH=/usr/bin/git:$PATH
Step 4: To install Git in Android Studio, we have to build a repository on GitHub first. Step 5: Now coming back to Android Studio, click on “VCS” (Version Control Systems) and then click on “Enable Version Control Integration”. Step 6: Then on selecting a version control, click “Git” and then “Ok”.
go to the terminal and type git --exec-path to get your git path. then go to IntelliJ and configure it, Click browse and select your git path. select git and hit test.
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.
sudo /usr/bin/git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With