Keppler
Keppler

Reputation: 65

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.

Upvotes: 4

Views: 52016

Answers (5)

Buddhiraj Sahu
Buddhiraj Sahu

Reputation: 21

Here is an illustration how to do it Screenshot for Android-tootl-chain download

Upvotes: 1

Mohamed Hassan
Mohamed Hassan

Reputation: 1

1- Download platform-tools from SDK platform tools :

2- if build-tools (version number) exception appears,

Upvotes: 0

DARTender
DARTender

Reputation: 544

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. Once you've installed the cmd tools, run flutter doctor and accept the licenses when prompted

Upvotes: 13

Siddharth Upadhyay
Siddharth Upadhyay

Reputation: 33

  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".

Upvotes: 0

Gyuhak Lee
Gyuhak Lee

Reputation: 1

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

Upvotes: 0

Related Questions