Android toolchain – I develop for Android devices (Android SDK version 30.0.3):
X cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details.
If you are a Mac user, just open your terminal and paste:
cd Library/Android/sdk/tools/bin./sdkmanager --install "cmdline-tools;latest"
And hit Enter.
This command will install the latest version of cmdline-tools.
flutter doctor, and the error will be gone.
Answered By – Prajeet Naga
Answer Checked By – Mary Flores (FlutterFixes Volunteer)