google / android-emulator-m1-preview

Apache License 2.0
1.83k stars 161 forks source link

Android Studio says "No emulator installed" #57

Open Jarzka opened 3 years ago

Jarzka commented 3 years ago

Hi

The readme file of this repo says that this emulator is no longer needed (or that it does not need to be installed manually?). However, when I'm setting up Android emulator on my M1 with Android Studio, I'm able to find and download AMR64-based Android images, but when I try to run them, Android Studio says "No emulator installed". There is a "Install" button, but it does nothing (or in some cases it asks me to install Intel Haxm which obviously does not work).

https://imgur.com/a/6VzbMJ4

I downloaded the emulator manually and it works, but the version here on GitHub is over 6 months old as I'm writing this. How can I install the latest version of this emulator?

uhooi commented 3 years ago

It's the same for me.

Add arm64 AVD.

スクリーンショット 2021-06-08 18 24 32

Click the run button.

スクリーンショット 2021-06-08 18 25 13

A dialog appears.

スクリーンショット 2021-06-08 18 24 42
Install Emulator

Intel HAXM is required to run this AVD.
No emulator installed

Please download the emulator

A dialog appears.

スクリーンショット 2021-06-08 18 24 47
ADV Manager

Retry after fixing problem by hand

Environment

baptttt commented 3 years ago

Does anyone have a solution for this issue ?

alienriquebm commented 3 years ago

Same issue here

izackp commented 3 years ago

Completely uninstall Android Studio via https://stackoverflow.com/questions/17625622/how-to-completely-uninstall-android-studio-on-mac

Then reinstalling worked for me.

nohli commented 3 years ago

For me the fix was easy - install an emulator.

The version on GitHub is old. Now you can install it directly via the SDK manager. If it's checked, uncheck, apply, check, apply and restart Android Studio:

sdk manager

And when creating the virtual device, one needs to select an arm image:

avd manager

Jarzka commented 3 years ago

Thanks @nohli , this is the information I was looking for. It would be helpful if this was also mentioned in the README file of this project.

sryze commented 3 years ago

I've created an emulator with the arm64 image as mentioned by @nohli but it still won't start, saying that Intel HAXM is required 😞

Screen Shot 2021-07-18 at 23 06 02

I'm using version 30.7.5 of the Emulator

Screen Shot 2021-07-18 at 23 06 44

Update:

Never mind... looks like the uninsntall step is required. Uninstalled and installed again the same version, and now it's working!

Update 2:

I'm able to launch the emulator, but Android Studio won't install the app to it for some reason. It just builds it and stops. No error or anything. adb devices says that the emulator is offline. Any idea how to fix this?

nohli commented 3 years ago

Fix: https://stackoverflow.com/questions/67230200/emulator-appearing-offline-on-m1-mac-after-the-last-update-of-arm64-v8a 😊