58

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

Ben Butterworth
  • 22,056
  • 10
  • 114
  • 167
Shadowwalker
  • 814
  • 1
  • 5
  • 17
  • 1
    is it resolved? – Nishant Shah Nov 18 '20 at 08:53
  • 2
    Nope, I still cannot run the emulator on android studio, I only can code but cannot run – Shadowwalker Nov 19 '20 at 06:25
  • even if it ran, performance would be terrible with just 8gb, despite the claim that macbookair is "faster than 98%" (calculators?) – rupps Nov 19 '20 at 10:27
  • Actually it is faster than my bro macbook pro 8GB of ram, his suffer alot – Shadowwalker Nov 20 '20 at 03:20
  • 3
    I couldn't find any issues in Google's issue tracker regarding adding support for this, so I filed one. Please star it, I would love to see this support too. https://issuetracker.google.com/issues/173766929 – carloshwa Nov 21 '20 at 11:33
  • Hi! Would u recommend to buy m1 air to develop androd app? Or it's better to wait some time? – Ya Si Nov 27 '20 at 13:35
  • @YaSi Hi! I would recommend u to wait for a while cause right now android emulator cannot run on m1 mac, but if u have an android phone and the emulator is not an issue for you then go ahead cause the m1 Mac is really fast, faster than the previous-gen MacBook and IMac and some of the intel and AMD pc/desktop – Shadowwalker Nov 28 '20 at 16:02
  • Have u faced any problem with running Android Studio on m1? Have u tried Visual Studio? The emulator issue is clear. – Ya Si Nov 29 '20 at 07:20
  • 2
    @YaSi Did not face any issue running Android Studio on m1 Mac, I am able to download and run android studio, no forced stop of app face till now but sadly I only can code cannot run emulator :( The same goes for visual studio, it downloads and runs very smoothly – Shadowwalker Nov 30 '20 at 08:27
  • 1
    @YaSi Opening the app was very fast too, only the first time usage it takes a longer time to open cause the app need to use Rosetta 2 to convert – Shadowwalker Nov 30 '20 at 08:30
  • @ryantay I Will not cancel my apple order. Thanx a lot. – Ya Si Dec 01 '20 at 09:06
  • @YaSi How's your m1 Mac? – Shadowwalker Feb 12 '21 at 15:38
  • I'm excited. If I launch android studio it will get warmer after some time. Compiling time is twice less than on my previous intel i7 mac book – Ya Si Feb 13 '21 at 10:58
  • @YaSi cause android studio is not build to run on m1 mac, it is still currently in beta – Shadowwalker Feb 13 '21 at 13:00

16 Answers16

46

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.

qaGuy
  • 497
  • 3
  • 2
33

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

hannes ach
  • 16,247
  • 7
  • 61
  • 84
8

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

Mahesh Jamdade
  • 17,235
  • 8
  • 110
  • 131
2

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/

Mahesh Jamdade
  • 17,235
  • 8
  • 110
  • 131
2

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

prasoonraj
  • 90
  • 9
2

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

kirara
  • 37
  • 3
1

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.

zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
  • Any idea why these don't show up in Android Studio. This page is blank when I go to it? – justdan0227 Nov 18 '20 at 15:23
  • How about under the Recommended tag? – zhangxaochen Nov 19 '20 at 01:19
  • 1
    I run the emulator that you ask me to download, the emulator appears, but it keeps on saying asking target devices to come online and can't bring me to the home page – Shadowwalker Nov 19 '20 at 06:55
  • You can try wiping data of the virtual device by right click it in AVD Manager, then rerun the project. Also check the Android Emulator box in SDK Manager -> SDK Tools – zhangxaochen Nov 19 '20 at 07:17
  • @PatrickGeng Are you actually able to run the emulator on an M1 machine with this image, or are you speculating? – carloshwa Nov 21 '20 at 11:29
  • No error - it's just stuck like on the screenshot in the question. Guess we'll just have to wait a bit until they support the m1. – de. Nov 21 '20 at 23:57
  • yup, arm images don't work, i download arm image and it just stuck on the loading screen as shown from my screenshot above – Shadowwalker Nov 22 '20 at 13:05
1

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.

Dike
  • 33
  • 4
  • 1
    Hmm, I search android developers website they never talk about supporting for m1 MacBook, I email google but none of them reply me, such bad customer support, really wish there is the documentation for how to solve or support for m1 macbook – Shadowwalker Nov 19 '20 at 06:27
  • Given the Arm64 Mac machine is just released, it may take quite a while for google to make its softwares fully compatible to the new platform – zhangxaochen Nov 19 '20 at 07:19
  • Ic, but there should be an announcement make on the website for developers to see – Shadowwalker Nov 19 '20 at 07:27
  • Where to find any news for android studio on arm mac? – Shadowwalker Nov 19 '20 at 09:30
  • @ryantay On Reddit, one of the developers replied to a post that they know the issue and they are working on an update. – Waheed Akhtar Nov 22 '20 at 11:45
  • @WaheedAkhtar Do you have the link? i went to android developers website and no news about support for m1 and I also went to android studio website and the same thing happen, no news about m1 support – Shadowwalker Nov 22 '20 at 13:06
  • @ryantay check the first comment: https://www.reddit.com/r/androiddev/comments/jrt7ph/armbased_macs_for_android_development/ – Waheed Akhtar Nov 24 '20 at 10:52
1

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

moster67
  • 830
  • 3
  • 12
  • 30
1

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

Sabiq Thottoly
  • 351
  • 5
  • 10
1

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

1

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.

Stephen Taylor
  • 798
  • 7
  • 19
1

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

Axel López
  • 266
  • 1
  • 5
  • 13
1

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.

flunder
  • 504
  • 6
  • 9
0

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
0

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

Matthias
  • 348
  • 3
  • 11