Flutter - 缺少 cmdline-tools 组件

问题描述 投票:0回答:2

运行时

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
但它没有帮助。我该如何解决这个问题?

android flutter macos android-studio
2个回答
4
投票

运行此命令对我有用:

flutter config --android-sdk /path/to/your/sdk

0
投票

对我有用。伟大的邮政坦克

© www.soinside.com 2019 - 2024. All rights reserved.