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

前端 未结 9 2238
抹茶落季
抹茶落季 2021-02-19 06:58

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

相关标签:
9条回答
  • 2021-02-19 07:31

    The path you configure for git should be C:\Users\Computer\Documents\Development\Git\cmd\git.exe instead. You should use git.exe not git-base.exe.

    And add git installed path to environment variables (for windows OS):

    This PC -> properties -> Advanced system setting -> advanced Tab -> environment variables -> find path in system variables -> edit -> add the git installed path by ;C:\Users\Computer\Documents\Development\Git\cmd -> ok.

    0 讨论(0)
  • 2021-02-19 07:32

    you should go into the "cmd" folder which is created in the main folder that you've installed the Git program. (usually is C:\Program Files\Git). In this folder you can find Git.exe then copy this address in configuration windows in Android Studio.

    0 讨论(0)
  • 2021-02-19 07:41

    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

    0 讨论(0)
  • 2021-02-19 07:42

    As mentioned by Marina-MSFT, you should add git.exe instead of git-base.exe or any other .exe files. You could find git.exe under, in your case, C:\Users\Computer\Documents\Development\Git\bin\git.exe, normally the git.exe file is under bin file of Git you have installed

    0 讨论(0)
  • 2021-02-19 07:44

    You should give a path in git.exe in cmd folder

    Try this: C:\Program Files\Git\cmd\git.exe

    0 讨论(0)
  • 2021-02-19 07:46

    For x64-bit Windows version change the path directory to

    Android Studio:  File > Settings... > Version Control > Git
    
    c:\Users\AppData\Local\GitHubDesktop\app-<version>\resources\app\git\cmd\git.exe
    

    Change default settings on Android Studio

    0 讨论(0)
提交回复
热议问题