Mac M1 Android Emulator

On A Mac Book Pro with M1 Chip. Android Emulator and Android SDK tools are downloaded. “The emulator process for AVD Pixel2API30 has terminated.” on. Support for downloading the M1-based emulator was added to SDK Manager, so it's not necessary to go to the Github releases page to download a standalone.app anymore. In AVD Manager go to the Other Images tab as by default it doesn't show the ARM64 images. Android Emulator M1 Preview.

-->

This guide explains how to prepare the Android Emulator for testing your app.

Overview

The Android Emulator can be run in a variety of configurationsto simulate different devices. Each configuration is called a virtualdevice. When you deploy and test your app on the emulator, you selecta pre-configured or custom virtual device that simulates a physicalAndroid device such as a Nexus or Pixel phone.

The sections listed below describe how to accelerate the Androidemulator for maximum performance, how to use the Android Device Managerto create and customize virtual devices, and how to customize theprofile properties of a virtual device. In addition, a troubleshootingsection explains common emulator problems and workarounds.

Sections

Hardware Acceleration for Emulator Performance

How to prepare your computer for maximum Android Emulator performanceby using either Hyper-V or HAXM virtualization technology. Because theAndroid Emulator can be prohibitively slow without hardwareacceleration, we recommend that you enable hardware acceleration onyour computer before you use the emulator.

Mac M1 Android Emulator

Managing Virtual Devices with the Android Device Manager

How to use the Android Device Manager to create and customize virtualdevices.

Editing Android Virtual Device Properties

How to use the Android Device Manager to edit the profile properties of avirtual device.

Android Emulator Troubleshooting

Android Studio For M1 Mac

In this article, the most common warning messages and issues that occurwhile running the Android Emulator are described, along withworkarounds and tips.

Note

Mac

If you are using a Mac with an Apple chip, such as the M1, you will need to install the Android Emulator for M1 preview from GitHub.

After you have configured the Android Emulator, seeDebugging on the Android Emulatorfor information about how to launch the emulator and use it for testingand debugging your app.

Mac

Note

As of Android SDK Tools version 26.0.1 and later, Google has removed support for existing AVD/SDK managers in favor of their new CLI (Command Line Interface) tools. Because of this deprecation change, Xamarin SDK/Device Managers are now used instead of Google SDK/Device Managers for Android Tools 26.0.1 and later. For more information about the Xamarin SDK Manager, see Setting up the Android SDK for Xamarin.Android.

Using Android Studio Emulators in M1 Mac:

Previously, when M1 Macbooks were released, Android studio didn’t have any support for emulators. Google has released a different preview build for emulators. You can check this build here.

The problem with this preview build is that you can’t change the emulator device type. It works, but if you want to test your application on different device or different screen sizes, there was no other option available.

Recently, they released one change to the Android Studio SDK manager and downloading an extra emulator is no loger needed now.

In this post, I will quickly show you how to create Android Emulators on M1 chipset mac in Android Studio.

Android

How to do that:

Studio

First, make sure that you have the latest Android Studio installed. If you have 4.1.2 or later Android studio version, this will work.

  1. First, start AVD manager. If you haven’t created any AVD or android virtual device before, you will find it in Tools->AVD Manager.

  2. Click on Create new virtual device button. It will show you a list of different devices. You can select any of these phones.

  1. Click on next. It will show you a list of system images. Basically, it shows different images for different Android Versions that can be used with the current AVD. Make sure to select the ‘Other image’ tab. Images listed under this tab are designed for Macbook M1.

Android Emulator Mac M1 Preview

That’s all. It will create one emulator using that selected image. You can also create different virtual devices using the same image.