Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

USB debugging doesn’t work with physical device/cmdline-tools component is missing/flutter

I created an app and my problem is that I can’t debug via USB cable because it doesn’t recognize my Smartphone.

If I run flutter doctor it shows me this error:

Android toolchain - develop for Android devices (Android SDK version
    32.1.0-rc1)
    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.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See
      https://flutter.dev/docs/get-started/install/windows#android-setup

If I run path/to/sdkmanager --install "cmdline-tools;latest" it doesn’t do anything.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Does anyone have a solution for my problem?

>Solution :

  1. For the First Problem, Open Android Studio and Go to SDK Manager > SDK Tools there you will find Android SDK Command-line Tools check the checkbox and press Apply button to install it.

enter image description here

  1. For the second problem just enter the command flutter doctor --android-licenses on Terminal/Command Prompt and accept all the licenses.
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading