I am getting a weird error on Android Studio 1.0.2 on Mac OSX Yosemite. The project doesn't build and I get
Error:(8, 0) Cause: error=2, No such file or directory
Where line number 8 is
def gitSha = 'git rev-parse --short HEAD'.execute().text.trim()
I am able to build the project through command line. It seems that Android studio isn't able to run git commands.
EDIT: It happened after I uninstalled older git(1.9) and installed updated one (2.0.1)