DEV Community

Cover image for Android cmdline-tools component is missing - Flutter installation issue
73

Android cmdline-tools component is missing - Flutter installation issue

When I installed Flutter, I worked my way through all the steps that the command line spit out when running

flutter doctor.

So following the instructions in the command line provided enough information about what to do next to check all the boxes and install Flutter successfully.

But one point didn't seem to be as easy to fulfill as the others πŸ˜₯.

Error that the Android Studio cmdline-tools component is missing.

Error πŸ‘Ύ



[!] Android toolchain - develop for Android devices (Android SKD version 34.0.0)
  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.


Enter fullscreen mode Exit fullscreen mode

Running the command path/to/sdkmanager --install "cmdline-tools;latest" as suggested did not work πŸ˜“.

After some research, I found out that no additional installation is required, just a change of settings in Android Studio.

To overcome the issue

  • open Android Studio
  • go to Tools in the menu bar and choose SDK Manager (opens the settings)
  • go to Android SDK in the left sidebar
  • in the middle choose SKD Tools (second tab in tab bar)
  • and check Android SDK Command-line Tools (latest)

Android Studio workflow.

After checking this box and running flutter doctor again, everything worked just fine and the installation was successfully completed.

All checkmarks are successfully checked.

Note ⚠️: The second issue Android license status unknown, which is marked with an x in the image worked without any problems when running flutter doctor --android-licenses as suggested in the console.


Thanks for your time and reading. I really appreciate it.

Image of Timescale

πŸš€ pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applicationsβ€”without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more β†’

Top comments (2)

Collapse
 
yuridevat profile image
Julia πŸ‘©πŸ»β€πŸ’» GDE β€’

Thanks for your comment. I feel you πŸ₯²

Billboard image

πŸ“Š A side-by-side product comparison between Sentry and Crashlytics

A free guide pointing out the differences between Sentry and Crashlytics, that’s it. See which is best for your mobile crash reporting needs.

See Comparison

πŸ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay