close

[Solved] cmdline-tools component is missing Error in Flutter

Hello Guys How are you all? Hope You all are fine. Today Just After solving Flutter run error: You have not accepted the license agreements I am facing new error says cmdline-tools component is missing Error in a flutter. So today Here I come with all possible solutions for this error.

We are providing you all possible solutions to solve this error. let’s start this article without wasting your time.

How cmdline-tools component is missing Error in Flutter Error Occurs ?

I am just run flutter doctor command in my terminal And I am facing following error in my terminal.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    ✗ cmdline-tools component is missing
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

How to Solve cmdline-tools component is missing Error in Flutter Error?

  1. How to Solve cmdline-tools component is missing Error in Flutter Error?

    to Solve cmdline-tools component is missing Error in Flutter Error 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.

  2. cmdline-tools component is missing Error in Flutter

    to Solve cmdline-tools component is missing Error in Flutter Error 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.

Solution 1: download and install the Command Line Tools in Android SDK manager

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.

1. First of all Open your android studio.

2. Click on three dot In your android studio Or If you are on Old version then you can find More Action button.

cmdline-tools component is missing Error in Flutter,
cmdline-tools component is missing Error,
cmdline-tools component is missing,
cmdline-tools component,
Android license status unknown
3. Then click on SDK Manager.

4. Then Select Android SDK on Left Sidebar Then Select SDK Tools.

5. You can see There is Android SDK Command-line Tools (latest) Just click on checkmark to download and install it.

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

7. Now, Open your CMD terminal.

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

9. Now we have Android SDK Manager – Tools and Platform Tools folders and we have to set path in Environment variable’s PATH variable.

10. To set Path variable just press Windows key and search for Environment Variable.

11. Under User Variables just Click on Path.

12. Then add you own system’s Android SDK Manager Tools Folder and Android SDK Manager Platform Tools folder path inside it.

13. Now just restart your PC and run flutter doctor command again.

14. Now your error should be fixed.

Summery

So, It’s All About This Error. I hope this tutorial helps you to Solve your error. Please Comment Below if You stucks anywhere with my code. And please comment below on which solution worked for you. Thank You.

Also Check Out Below Tutorials

Leave a Comment