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

Viewed 12949

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.

3 Answers

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

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

  1. Run this flutter config --android-sdk <path where you saved Android studio SDK> for e.g. in my case it was flutter config --android-sdk D:\AS_SDK (basically navigate SDK to the custom location).
  2. Go to Android Studio, on the first page where you start a project, find the option to look for more settings, there you go to SDK manager and then select and install "Android SDK Command-line Tools (latest)" (size at the time of writing this is 108.9mb).
  3. Now that you have the Android SDK navigated to the correct location and the latest command-line tools installed, run this flutter doctor --android-licenses and for every question it asks while confirming the licenses say "y".
Related