'Flutter doctor --> Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)

I have a question so I think I dowlnloaded everything correctly but I still get this massage when I type in "flutter dictir" in cmd. When I run "path/to/sdkmanager --install "cmdline-tools;latest" as recommended nothing happens. So could you help me to download it anyways?

thecode

[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) 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. X Android license status unknown. Run flutter doctor --android-licenses to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/windows#android-setup for more

! Doctor found issues in 1 category.



Solution 1:[1]

Open android studio then go to settings then SDK manager. Check the command line tools if it's not checked (most times it's not), then finish and let it download that plugin

Solution 2:[2]

Check the Android SDK path.

Go to where flutter is installed flutter config --android-sdk android_sdk_path execute the command.

ex) flutter config --android-sdk C:\tools\AndroidSDK

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 O'neya
Solution 2 Gyuhak Lee