close
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

[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 occurs because flutter cant finds command-line tools in your environment. So that to solve the 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 a full guide on how to solve this error.

  • First of all, Open your android studio.
  • Click on three-dot In your android studio If you are on the Old version then you can find the 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
  • Then click on SDK Manager.
  • Then Select Android SDK on Left Sidebar Then Selects 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 the below command.
flutter doctor --android-licenses
  • 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 the path in the Environment variable’s PATH variable.
  • To set the Path variable just press the Windows key and search for Environment Variable.
  • Under User Variables just Click on Path.
  • Then add your 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 the flutter doctor command again.
  • Now your error should be fixed.

Solution 2: For mac User

If You are a Mac user then just run the following command in your terminal.

cd Library/Android/sdk/tools/bin./sdkmanager --install "cmdline-tools;latest"

The above command will install cmdline-tools with the latest version. and then run the flutter doctor command and your error will be solved.

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


Posted

in

by

Comments

4 responses to “[Solved] cmdline-tools component is missing Error in Flutter”

  1. Boston Avatar
    Boston

    Great tutorial. Fixed my problem and was very simple to comprehend.

  2. Gregg Avatar
    Gregg

    Thank you! That worked. I went via menu item: Tools | SDK Manager.

  3. wilmar Avatar
    wilmar

    great tutorial, I managed to solve it, thanks!

  4. Cristofer Avatar
    Cristofer

    Excelente aporte gracias

Leave a Reply

Your email address will not be published. Required fields are marked *