Reputation: 65
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?
[!] 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
Reputation: 21
Here is an illustration how to do it Screenshot for Android-tootl-chain download
Upvotes: 1
Reputation: 1
1- Download platform-tools from SDK platform tools :
C:\Users\<UserName>\AppData\Local\Android\Sdk
and replace the platform-tools folder with the new one.2- if build-tools (version number) exception appears,
C:\Users\<UserName>\AppData\Local\Android\Sdk\build-tools
and replace the folder with that version number with the new one.Upvotes: 0
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
Reputation: 33
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).flutter doctor --android-licenses
and for every question it asks while confirming the licenses say "y".Upvotes: 0
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