Code Optimization

Interesting things about software development and code optimization

No suitable Android AVD system images are available - Flutter and VS Code

Hello friends,

I was trying to setup and run an android emulator for my Flutter project on Visual Studio Code IDE and got the following error:

No suitable Android AVD system images are available. You may need to install these using sdkmanager, for example: sdkmanager "system-images;android-27;google_apis_playstore;x86"

So steps to solve this issue are the following:

1. Check if there is the path under PATH System Environment Variable: C:\Users\User1\AppData\Local\Android\sdk\tools\bin

      if not then add it pointing to your ANDROID SDK TOOL BIN location

2. Run Windows Powershsll (Admin) and run the command: sdkmanager "system-images;android-27;google_apis_playstore;x86"

3. Wait until it is finished and run the Create Android Emulator in Visual Studio Code

Now everything should work and you should be able to create a new emulator :)



Comments (5) -

  • Gabriela

    3/22/2020 6:56:20 AM | Reply

    Thank you! I was able to solve the problem with your help.

    • okarpov

      3/22/2020 7:24:09 AM | Reply

      Glad to hear! Smile

  • Ahmed Bahrawy

    4/6/2020 2:19:58 PM | Reply

    so what happen if i cant find the path
    i am using visual studio code and i cant run the emulator even i cant use my personal mobile.

    • okarpov

      4/7/2020 12:53:05 AM | Reply

      Then just find where is the ANDROID SDK TOOL BIN located on your PC and add it Smile

      If you have no such location then it means that you even have no Android SDK installed at all and easiest way to install it is to install Android Studio

  • Ashley

    12/13/2021 4:29:46 PM | Reply

    Thank you, this is exactly what I needed. I missing the PATH variable when using other people's suggestions. Smile