Skip to content

command line tools missing (when i run flutter doctor) ##(vs-code editior) #139288

@abhishek9773

Description

@abhishek9773

Is there an existing issue for this?

Steps to reproduce

1. i install flutter > install android sdk >

problem is : -

  • when is use flutter doctor command =>i face error command line missing and i use vscode and every thing i asses through command line

Actual results

i try many method here is my more information:-

$ flutter doctor
[✗] Android toolchain - develop for Android devices
✗ cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.


my sdkmanager locations :-

export PATH=$PATH:"/opt/android_sdk/cmdline-tools/latest/bin"

Logs

Logs
<!-- Paste your logs here -->

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.0, on Ubuntu 22.04.2 LTS 6.2.0-26-generic, locale en_IN)
[✗] Android toolchain - develop for Android devices
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (version unknown)
    ✗ Unable to determine Android Studio version.
    ✗ android-studio-dir = /opt/android_sdk/cmdline-tools/latest/bin
    ✗ Unable to find bundled Java version.
[✓] VS Code (version 1.84.2)
[✓] Connected device (2 available)
[✓] Network resources

i know i make mistake in the Android Studio path => this path is actually android command line tools => this thing happens because i use command flutter config --android-studio-dir=<directory> so place ignore this area they are not effecting

main problem is android command line tools

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions