今天把 macOS 升級到 High Sierra 了,
結果一打開 Android Studio 就出現以下的錯誤:
Can't start Git: /usr/bin/git
Probably the path to Git executable is not valid. Fix it.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解決方式很簡單,請在終端機執行 xcode-select --install 安裝新版的 Command Line Tools 就可以囉 :)
結果一打開 Android Studio 就出現以下的錯誤:
Can't start Git: /usr/bin/git
Probably the path to Git executable is not valid. Fix it.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解決方式很簡單,請在終端機執行 xcode-select --install 安裝新版的 Command Line Tools 就可以囉 :)
留言
張貼留言