Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio "Error Running Git" , 'Empty git --version output:'

I have looked at the other posts and have made certain that the path is correct to the executable file, as shown below. I can launch git from from this path outside of Android Studio. The current project is the "sunshine-version 2" from Udacity and it is a version or two old, but this should not affect the VCS from launching. I have read the other posts concerning this issue, but none have resolved this issue. enter image description here Also, when Android Studio gradle runs, it will open git in several windows and then close them almost immediately. They pop-up for a second or two, and then close. It's definitely trying to run git, and then default closes?

like image 933
DennisWPaulsenJR Avatar asked Feb 08 '17 22:02

DennisWPaulsenJR


2 Answers

I just went to the Git path ubication, the only different thing that I did was have stopped at the cmd folder. As you might see in the next screenshot

enter image description here

Subsequently, instead of choosing git-gui.exe option, I select just git.exe option. And it seems to work for me.

enter image description here

like image 98
netoliguz Avatar answered Oct 09 '22 06:10

netoliguz


default path of git.exe for GitHubDesktop 64-bit version is

c:\Users\AppData\Local\GitHubDesktop\app-<version>\resources\app\git\cmd\git.exe

you should try this path.

like image 20
AhuraMazda Avatar answered Oct 09 '22 06:10

AhuraMazda