Flutter — Flutter doctor results with “cmdline-tools component is missing”

After installing Android Studio & Flutter on Windows 10, when I run flutter doctor, I get the following:

Flutter Developer

--

[√] Flutter (Channel stable, 2.5.0, on Microsoft Windows [Version 10.0.19043.1202], locale en-US)
[X] Android toolchain - develop for Android devices
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.
[√] Chrome - develop for the web
[√] Android Studio (version 2020.3)
[√] VS Code (version 1.60.0)
[√] Connected device (2 available)

Solution

You can follow the below steps in order to ensure proper working of your flutter project: your sdk manager should look something like this:

  1. Installing Android SDK Command-line Tools in Android Studio:

Preferences > Appearance & Behavior > System Settings > Android SDK > SDK Tools >

install these 3 tools:

Android SDK Command-line Tools (latest)

Android SDK Build Tools 31

Android SDK Platform tools (latest version 31)

--

--

No responses yet