OS X - Can't start Git: /usr/bin/git Probably the path to Git executable is not valid

后端 未结 20 2382
有刺的猬
有刺的猬 2020-12-12 23:16

I get this error in Android Studio:

Can\'t start Git: /usr/bin/git Probably the path to Git executable is not valid.

<
相关标签:
20条回答
  • 2020-12-12 23:56

    If you recently installed Jetbrains Toolbox:

    Uninstall and installing through the Toolbox solved the problem for me.

    0 讨论(0)
  • 2020-12-12 23:58

    When upgrading to MacOS Sierra I had to run: xcode-select --install

    0 讨论(0)
  • 2020-12-12 23:59

    In terminal

    sudo xcodebuild -license accept
    
    0 讨论(0)
  • 2020-12-12 23:59

    At first try to restart your pc, if you just installed git.

    0 讨论(0)
  • 2020-12-13 00:00

    I met a same problem. Idea indicate that: Can't start Git: /user/bin/git... And I run "which git" on terminate and I found that my git stay on: /user/local/bin/git So what I need is change git's path on project setting. And it worked.

    0 讨论(0)
    1. Run sudo git --version

    2. If already Xcode is installed : Run sudo softwareupdate -ia --verbose If not : xcode-select --install sudo xcodebuild -license

    3. sudo xcode-select -switch /Library/Developer/CommandLineTools

    After this don’t forget to re-start the system. It worked for me and for sure work you you as well.

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