flutter-intellij icon indicating copy to clipboard operation
flutter-intellij copied to clipboard

Error opening emulator on Android Studio only for Flutter projects

Open zoechi opened this issue 6 years ago • 12 comments

@d-apps commented on Thu Jan 10 2019

[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17134.523], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[√] Android Studio (version 3.2)
[√] IntelliJ IDEA Community Edition (version 2018.3)
[√] VS Code (version 1.30.2)
[√] Connected device (3 available)

============================

I was trying to test my first flutter project on Android Studio, when I try to change the selected emulator I get this error.

1 2

I already removed and created new emulators with different versions but no success. I have no idea how to use -read-only flag to enable this feature, and I couldn't find anything on the internet about that error.

My emulators work fine for my Android projects.

zoechi avatar Jan 10 '19 16:01 zoechi

Thanks for the report! That's a message from the CLI we're using to launch the emulator. We'll need to figure out how to know when to pass that flag in ourselves.

devoncarew avatar Jan 10 '19 16:01 devoncarew

@d-apps, I'm curious - do you already have another emulator running?

devoncarew avatar Jan 10 '19 16:01 devoncarew

@devoncarew When I start any active emulator the option shows only "Android SDK built for x86", if I connect my real phone it works, I see him in the list and when I select it appears selected but with any other AS emulator I get the error.

untitled

When the emulator is closed and I select to open it opens ok but I can't select it, getting the error and show only : "Android SDK built for x86"

2

d-apps avatar Jan 10 '19 17:01 d-apps

If I keep Android SDK built for x86 selected, I get this error:

1

d-apps avatar Jan 11 '19 21:01 d-apps

After testing many android version and phones, my emulator is working now with the version below. I didn't change anything in advanced option, all default, and the image is x86_64. 1

d-apps avatar Jan 26 '19 18:01 d-apps

Check your SDK Manager at Tools>SDK Manager. Also, check your AVD Manager, change your system image up to date

pebojote avatar Oct 29 '19 00:10 pebojote

In short, check your SDK and AVD Manager if there is a lablel "Update available"

pebojote avatar Oct 29 '19 00:10 pebojote

You can go to this folder : C:\Users\user.android\avd and delete all files. Please restart Android Studio after deleting the file, and create a Virtual Device. I solved my problem in this way

markcqhsu avatar Jun 12 '21 15:06 markcqhsu

You can go to this folder : C:\Users\user.android\avd and delete all files. Please restart Android Studio after deleting the file, and create a Virtual Device. I solved my problem in this way

Excellent! It worked! Thanks

cllanoe avatar Feb 10 '23 22:02 cllanoe

I am on Mac mini m2 pro and still getting this error

Sid7862 avatar May 17 '23 12:05 Sid7862

I also have that same error on my MBP M1 Pro. It's a long standing issue I see. I'm on Intellij IDEA and I noticed that the first time I press to open the emulator, nothing happens. The second time, it shows the error (probably because I'm trying to start the same proces?).

nefario19 avatar Sep 30 '23 06:09 nefario19

This issue occurs with Android Studio 2023.3.1 Patch 1 on my Dragonfly G4 as well...

tejasraman avatar Jun 04 '24 05:06 tejasraman