运行时
flutter doctor
我收到此错误:
✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
我尝试在 SDK 管理器上安装
cmdline-tools
但它没有帮助。我该如何解决这个问题?
运行此命令对我有用:
flutter config --android-sdk /path/to/your/sdk
对我有用。伟大的邮政坦克