2

While installing flutter I am getting this error:

Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`

And I saw many solutions but they all use Android Studio, while I am using VSCode.

4
  • Please follow this stackoverflow.com/questions/68236007/… Possible duplictate of this. Commented Nov 10, 2021 at 7:15
  • No its not same, its about Android Studio and so easy to locate in it. I am using VSCode so I am not able to solve it. Commented Nov 10, 2021 at 7:22
  • You can install manually from this link depend on the system you are using. developer.android.com/studio#command-tools and proandroiddev.com/… Commented Nov 10, 2021 at 7:24
  • Yes thank you, it worked. We need to download the command line tools separately and then place it in our \AppData\Local\Android\Sdk directory. Commented Nov 10, 2021 at 12:41

1 Answer 1

4

For my case Installing Command-line Tools form sdk manager solved the problem.

Steps to install from sdkmanager:

  1. Open sdk manager in Android Studio
  2. Select SDK Tools tab
  3. Select Android SDK Command-line Tools and then apply

Steps

You can download command-line tools manually and place it on sdk folder. That also should work.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.