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?
Running this command worked for me:
flutter config --android-sdk /path/to/your/sdk