![make andyroid emulator run better make andyroid emulator run better](https://www.olcbd.net/wp-content/uploads/2020/01/How-to-Create-Virtual-Device-AVD-Emulator-Android-Studio-and.jpg)
Launch a new Emulator with the provided configurations.Create a new instance of AVD with the provided configurations.
#MAKE ANDYROID EMULATOR RUN BETTER INSTALL#
Install / update the required Android SDK components including build-tools, platform-tools, platform (for the required API level), emulator and system-images (for the required API level).This action automates the process by doing the following: You can also achieve this on a self-hosted Linux runner, but it will need to be on a compatible instance that allows you to enable KVM - for example AWS EC2 Bare Metal instances. The macOS VM provided by GitHub Actions has HAXM installed so we are able to create a new AVD instance, launch an emulator with hardware acceleration, and run our Android If you want to learn more about this, here's an article I wrote: Running Android Instrumented Tests on CI.
![make andyroid emulator run better make andyroid emulator run better](https://www.maketecheasier.com/assets/uploads/2019/12/Run-Android-Apps-Mac-Google-Play.jpg)
This presents a challenge on CI as to be able to run hardware accelerated emulators within a docker container, KVM must be supported by the host VM which isn't the case for cloud-based CI providers due to infrastructural limits. The modern Intel Atom (x86 and x86_64) emulators require hardware acceleration (HAXM on Mac & Windows, QEMU on Linux) from the host to run fast. The old ARM-based emulators were slow and are no longer supported by Google.
![make andyroid emulator run better make andyroid emulator run better](https://miro.medium.com/max/1400/1*ROb3GiEn2Zs2PCJXd6zvkg.png)
A GitHub Action for installing, configuring and running hardware-accelerated Android Emulators on macOS virtual machines.