'Android Emulator stuck loading screen on M1 mac/ Apple Silicon
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.
Solution 1:[1]
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:[2]
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
Ok it has some limitations, but it works
Solution 3:[3]
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:[4]
As of today the android emulator is up and working on the Apple Silicon here's a working demo from a googler
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:[5]
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:[6]
This is the working emulator done by Android developers https://github.com/google/android-emulator-m1-preview it works like a charm
Solution 7:[7]
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 8:[8]
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.
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 9:[9]
There is a rudenmentary beta of the emulator for Mac M1 here github link
Solution 10:[10]
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 11:[11]
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 12:[12]
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 13:[13]
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 14:[14]
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:[15]
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:
- Wipe data of the virtual device by right clicking it in AVD Manager, then rerun the project.
- Check the Android Emulator box in SDK Manager -> SDK Tools
Solution 16:[16]
Download the android-emulator-m1-preview.dmg from https://github.com/741g/android-emulator-m1-preview/releases
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow