Home > Software engineering >  Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are
Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are

Time:01-15

I was following a tutorial to install an android emulator, without android studio, and I was told to run the command- flutter doctor. Upon running this, I got this error-

X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.

So I tried running flutter doctor --android-licenses, and I got this error-

Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to
resolve this.

This is my ANDROID_HOME directory-

enter image description here

And Inside platforms, I have android-32 installed.

I saw some fixes for this, but those were all with android studio. How do I fix this? Thanks in advance!

CodePudding user response:

I think you need to install cmdLine

please run flutter doctor and share cmd results to help better

CodePudding user response:

  1. Open Android Studio
  2. Open Preferences
  3. Appearances tab on the left
  4. System Settings
  5. Android SDKenter image description here
  6. Click Show Package details
  7. Toggle SDK Tools
  8. Apply and restart Android Studio
  9. Run flutter doctor
  •  Tags:  
  • Related