Today As I run flutter doctor command I am facing following error in output: Android toolchain – develop for Android devices (Android SDK version 32.1.0-rc1) X cmdline-tools component is missing and X Android license status unknown in flutter. So today we are going to solve this error with all possible solutions.
How Android toolchain – develop for Android devices error occurs?
As I Installed Flutter in my Windows PC I just ran flutter doctor command But I am facing following error.
[!] 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
How to solve Android toolchain – develop for Android devices?
- How to solve Android toolchain – develop for Android devices?
This error is occurs because of flutter cant find command line tools in your environment. So that to solve cmdline-tools component is missing Error in Flutter we have to manually download and install the command line tools in android SDK manager. Here is full guide how to solve this error. You can see There is Android SDK Command-line Tools (latest) Just click on checkmark to download and install it. Now your error should be fixed.
- Android toolchain – develop for Android devices
This error is occurs because of flutter cant find command line tools in your environment. So that to solve cmdline-tools component is missing Error in Flutter we have to manually download and install the command line tools in android SDK manager. Here is full guide how to solve this error. You can see There is Android SDK Command-line Tools (latest) Just click on checkmark to download and install it. Now your error should be fixed.
Solution 1: Download command line tools
This error is occurs because of flutter cant find command line tools in your environment. So that to solve cmdline-tools component is missing Error in Flutter we have to manually download and install the command line tools in android SDK manager. Here is full guide how to solve this error.
- First of all Open your android studio.
- Click on three dot In your android studio Or If you are on Old version then you can find More Action button.

- Then click on SDK Manager.

- Then Select Android SDK on Left Sidebar Then Select SDK Tools.
- You can see There is Android SDK Command-line Tools (latest) Just click on checkmark to download and install it.
- So that we have installed command-line tools successfully. Now you have Android license status unknown error and to solve that error we have to Accept the Android SDK license
- Now, Open your CMD terminal.

- Then execute below command.
flutter doctor --android-licenses
- 8. Just read and accept all licenses. If you Face java error then just follow this [Solved] flutter doctor –android-licenses gives a java error
- Now we have Android SDK Manager – Tools and Platform Tools folders and we have to set path in Environment variable’s PATH variable.
- To set Path variable just press Windows key and search for Environment Variable.
- Under User Variables just Click on Path.
- Then add you own system’s Android SDK Manager Tools Folder and Android SDK Manager Platform Tools folder path inside it.
- Now just restart your PC and run flutter doctor command again.
- Now your error should be fixed.
Conclusion
So This is all About to solve this error. Hope Above Three Solution is Enough to resolve your error. Please Let us know which solution worked For You ? And If Your Error Not Resolved then Just Comment below Our Team will Definitely Help You. Also Comment below your suggestion. Thank You.
Also, Check Out the Below Tutorials
- Unhandled Exception: [Core/Not-Initialized] Firebase Has Not Been Correctly Initialized
- Invalid Provisioning Profile Signature. The Provisioning Profile Included In The Bundle
- The Current Dart SDK Version Is 2.15.1. Because Myflutter_app Requires SDK
- Warning: Your Flutter Application Is Created Using An Older Version Of
- How to make a blur Background Image effect in Flutter using BackdropFilter.