skip to Main Content

/opt/Android/cmdline-tools/tools/bin is where the sdk is stored

I have added it to path aswell with

export ANDROID_HOME=/opt/Android/ &
export PATH=$ANDROID_HOME/cmdline-tools/tools/bin:$PATH and restarting with source

And yet when I try to create android emulator with VScode i get an error

VScode Error

Flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.4, on Ubuntu 20.04.5 LTS 5.15.0-48-generic,
    locale en_IN)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from:
      https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK
      components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup
      for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] VS Code (version 1.71.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

! Doctor found issues in 2 categories.

2

Answers


  1. Chosen as BEST ANSWER

    Well, I followed this custom installation guide and it worked!


  2. If you download Android Studio, it should automatically configure everything for you and you can then use android emulators without any issues. Flutter doctor seems to suggest doing the same as well.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search