在运行flutter医生
时,我收到这个错误:
✗ 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.
我试图安装cmdline-tools
在SDK管理器上,但它没有帮助。我如何解决这个问题?
运行此命令对我有用:
flutter config --android-sdk /path/to/your/sdk