androidgitversion-controlandroid-studio-2.2

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?


Solution

  • 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