2

While running flutter doctor I am receiving this error:

✗ 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.

I have tried to install cmdline-tools on SDK Manager but it did not help. How can I solve this problem?

Joe Rakhimov
  • 4,713
  • 9
  • 51
  • 109
  • 1
    I believe this [stack overflow question](https://stackoverflow.com/questions/68236007/i-am-getting-error-cmdline-tools-component-is-missing-after-installing-flutter) covers your use case – Darkhorse Dec 29 '22 at 11:28

1 Answers1

7

Running this command worked for me:

flutter config --android-sdk /path/to/your/sdk
Joe Rakhimov
  • 4,713
  • 9
  • 51
  • 109