apple m1 android emulator

As you might know apple recently announced Apple M1 which is the first ARM-based system on a chip designed by Apple. Developers all around the world are suggesting the M1 macs as the best machine for development.

Which had a bad new for android developers as they cannot run android emulator in M1 powered macbooks as android emulator was dependent on Intel. Though apple provided a solution to use rosetta 2 to emulate so that X86 apps can run on ARM instruction set. However with a few limitations.

Rosetta 2 Limitations

  • Cannot run kernel extensions

  • Virtual Machine apps that virtualise x86_64 platforms cannot be translated

Here in the second point, VM includes Android Emulator (Android Virtual Device - AVD).

Android Studio IDE

Currently, Android Studio isn’t yet compatible as a native arm binary, which means the entire android studio runs with rosetta 2 translation. However, the performance even on emulation seems better than that on a intel powered pc.

If you try to download and run AVD, you might have encountered the error something like this

AVD manager error

Settings up Android Emulator of M1

Head over to AVD manager in android studio.

AVD manager Android Studio

Create a new virtual device.

Virtual device android

Select the device that you want to use and then click next.

Select Sytem image

In AVD Manager go to the Other Images tab as by default it doesn’t show the ARM64 images.

Arm 64 other image

There you should find images with ABI as arm64. Choose a OS version and download one of those.

Once the image downloading is complete click next. That’s all your android virtual device is created.

Virtual device

You should be able to see it live on the avd selection pannel in android studio.

AVG dropdown Hope this short guide helped you. If you face any kind of issues feel free to comment down below. I’ll be happy to help.

Emulator