I get this error in Android Studio:
Can't start Git: /usr/bin/git
Probably the path to Git executable is not valid.
Agreeing to the Xcode/iOS license requires admin privileges, please
re-run as root via sudo.
You should run "sudo git --version" on your command line. It will ask you to agree to the git xcode license agreement, once done everything will work as before.