Android Emulator stuck loading screen on M1 mac/ Apple Silicon

AndroidAndroid StudioAndroid EmulatorGoogle Developers-Console

Android Problem Overview


I had downloaded Android Studio on my M1 MacBook air but I can't run the emulator and it just gives me an error. I search Android Studio requirements for mac and it says that it requires mac os 10.10 or higher and a minimum of 2 GB disk space and 4GB of ram. Anyone have this issue and how do I solve it?

I try download the arm image android studio it is stuck on the loading screen for the emulator.

enter image description here

Android Solutions


Solution 1 - Android

As for now (19/11/2020) any of the Virtualization tools do not work with the new Apple M1 macs. So things like docker, emulators etc. We might have to wait a bit until this is fully supported unfortunately.

Solution 2 - Android

Good news !

Edit on 28th July 2021  

> Apple Silicon Support

There is an arm64 release version available for Android Studio Arctic Fox (2020.3.1) You can download it here https://developer.android.com/studio/archive

When NDK runs into Unknown host CPU architecture: arm64 you can solve it here

End of beta ! Thank you

Edit on March 2021

I can confirm, this preview of Emulator works properly https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html

In the blog there is a link to a private repo (2021-Jan-04). They moved repo to google and there you find V3 https://github.com/google/android-emulator-m1-preview/releases

Since v3 even audio-out works (no audio-in)

Edit on 4th Feb 2021

Now audio in and out works properly https://github.com/741g/android-emulator-m1-preview/issues/10#issuecomment-773532762

Edit March 2021

You can simply use one of them and it's working out of the box

enter image description here

enter image description here

Ok it has some limitations, but it works

Solution 3 - Android

On August release notes you can see on the emulator for Arm host section an entry where they said the support for M1 is in progress. Check the link below: https://developer.android.com/studio/releases/emulator#emulator_for_arm64_hosts

Solution 4 - Android

As of today the android emulator is up and working on the Apple Silicon here's a working demo from a googler

enter image description here

source: https://twitter.com/GoogleLfy/status/1332474914398322689 And the known issues here: https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html

we can expect the stable release by the end of 2020 here's a conversation about the same https://www.reddit.com/user/lfy_google/

Solution 5 - Android

Android studio has still not released a modified version for M1 macs, the version you are running, was originally made for intel chips, and is running via rosetta2. And rosetta does not support virtualisation, so you cant run emulator, but you could do all else coding stuff with minor bugs, for testing your code you may use a physical android device and it works just fine...please let me know if further problem exists...

Solution 6 - Android

This is the working emulator done by Android developers https://github.com/google/android-emulator-m1-preview it works like a charm

Solution 7 - Android

For other ARM devices, it should be involved as an Instruction Set problem, in that case you can go to the AVD Manager of your AS and when create new virtual device, make sure to download the system image with arm64-v8a ABI, which is shown as bellow.

enter image description here

For Mac M1 chip, these arm64 images can not solve the problem and for now the best way is to wait Google release the compatible images.

Solution 8 - Android

I heard that the emulator won't work due to arm architecture of the apple silicon. Using a phone for debugging might be the only option. I also heard that android studio were working on an update for the M1.

Solution 9 - Android

There is a rudenmentary beta of the emulator for Mac M1 here github link

Solution 10 - Android

android studio have made a rough initial preview of the emulator running on Apple Silicon.More details are available in this link below

https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html

Also you can download DMG file from GitHub: https://github.com/741g/android-emulator-m1-preview

Solution 11 - Android

Android has released beta emulator for M1 chipset

Please check this think to beta release

https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html?m=1

Solution 12 - Android

Currently, Android Studio only supports the HAXM Intel version (which isn't compatible with ARM processors) of virtualization, to run the emulator. But maybe in the coming weeks they might release the compatible versions for apple silicon processors. Till then the only option is to use a physical device.

Solution 13 - Android

there is an Android Emulator Apple Silicon Preview in the next documentation https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html

Solution 14 - Android

On my M1 machine, the emulator would get stuck ( not open ) and the dock icon would say 'qemu-system-aarch64' and then that was it.

I managed to get the emulator to start by running it via the terminal and adding the gpu host flag

emulator -gpu host -avd Pixel_5_API_32

P.S. I couldn't find the right stack issue, so I'm leaving this here.

Solution 15 - Android

It's because the new M1 chips run on arm Architecture and not x86. You have to download the arm compatible virtual devices those are available in the other images tab inorder to run those emulators.

Also try this:

  1. Wipe data of the virtual device by right clicking it in AVD Manager, then rerun the project.
  2. Check the Android Emulator box in SDK Manager -> SDK Tools

Solution 16 - Android

Download the android-emulator-m1-preview.dmg from https://github.com/741g/android-emulator-m1-preview/releases

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionShadowwalkerView Question on Stackoverflow
Solution 1 - AndroidqaGuyView Answer on Stackoverflow
Solution 2 - Androidhannes achView Answer on Stackoverflow
Solution 3 - AndroidPablo FernandezView Answer on Stackoverflow
Solution 4 - AndroidMahesh JamdadeView Answer on Stackoverflow
Solution 5 - AndroidprasoonrajView Answer on Stackoverflow
Solution 6 - AndroidkiraraView Answer on Stackoverflow
Solution 7 - AndroidPatrickKenView Answer on Stackoverflow
Solution 8 - AndroidDikeView Answer on Stackoverflow
Solution 9 - Androidmoster67View Answer on Stackoverflow
Solution 10 - AndroidSabiq ThottolyView Answer on Stackoverflow
Solution 11 - AndroidAltaf RazzaqueView Answer on Stackoverflow
Solution 12 - AndroidRansike RandeniView Answer on Stackoverflow
Solution 13 - AndroidAxel LópezView Answer on Stackoverflow
Solution 14 - AndroidflunderView Answer on Stackoverflow
Solution 15 - AndroidMithun KartickView Answer on Stackoverflow
Solution 16 - AndroidMatthiasView Answer on Stackoverflow