Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am getting this errors "cmdline-tools component is missing" after installing flutter and android studio... i added andorid sdk. how to solve them?

Android toolchain - I develop for Android devices (Android SDK version 30.0.3):

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. 
like image 463
Stark Avatar asked Jul 03 '21 11:07

Stark


People also ask

How do I fix command line tools component is missing in flutter?

Delete the "latest" folder and rename "latest-2" to "latest". This happens when there is a "latest" folder while installing Android SKD command-line tools in SDK manager. In this way, you can solve "cmdline-tools component is missing" error on Flutter.

How do I fix android toolchain error in flutter?

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.


Video Answer


1 Answers

The solution for me was opening Android Studio and going to SDK Manager, switch to the SDK Tools tab and check Android SDK Command-line Tools (latest).

Enter image description here

Don't forget to add to your PATH the tools and platform-tools folder that are inside your SDK.

like image 127
Felipe Carvalho Avatar answered Sep 20 '22 19:09

Felipe Carvalho