MacOS Monterey 和 Android Studio Bumblebee,“未安装 Git”

Amo*_*mos 12 git android-studio macos-monterey

将Android Studio升级到Bumblebee版本后,我遇到了这个错误。

Xcode 已安装,但当前已卸载。

Amo*_*mos 34

  1. 按照建议,终端运行xcode-select --install
  2. 然后运行sudo xcode-select --reset,这将重置其路径
  3. 更新 Android Studio > 首选项 > 版本控制 > Git > 路径/Library/Developer/CommandLineTools/usr/bin/git
  4. 使缓存无效并重新启动android studio(可选)
  5. 现在工作正常