flutter / flutter-intellij

Flutter Plugin for IntelliJ
https://flutter.dev/using-ide
BSD 3-Clause "New" or "Revised" License
1.98k stars 319 forks source link

Error opening emulator on Android Studio only for Flutter projects #3064

Open zoechi opened 5 years ago

zoechi commented 5 years ago

@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.

devoncarew commented 5 years ago

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 commented 5 years ago

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

d-apps commented 5 years ago

@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 commented 5 years ago

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

1

d-apps commented 5 years ago

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

pebojote commented 5 years ago

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

pebojote commented 5 years ago

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

markcqhsu commented 3 years ago

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

cllanoe commented 1 year ago

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

Sid7862 commented 1 year ago

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

nefario19 commented 1 year ago

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?).

tejasraman commented 5 months ago

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