Wed. Oct 20th, 2021
Android Developers Blog: Android Emulator
Posted by Jamal Eason, Product Manager, Android

Since the most important revamp of the Android Emulator two years in the past, we have now targeted on delivering a quick and feature-rich emulator that will help you construct nice app experiences for customers. Today, the Android Emulator is the highest system deployed to from Android Studio — greater than 2x over bodily Android units. We are humbled to listen to from lots of you that the Android Emulator has come a great distance, however we’re not executed but.

Making the Android Emulator quicker is likely one of the prime priorities for the Android Studio staff. Over the previous couple of releases, we have now launched fast boot & emulator snapshots for shortly beginning and resuming emulator periods in beneath 2 seconds. Up till now, our emulator expertise has virtually universally labored on macOS® and Linux computer systems. But for customers of Microsoft® Windows® or the Microsoft® Hyper-V platform, our {hardware} accelerated velocity enhancements for the Android Emulator solely labored with computer systems with Intel® processors. Support for AMD® processors and Microsoft Hyper-V hypervisor are two long-standing person requests from the Android developer group that we’re comfortable to handle with this Android Emulator replace.

Today, you possibly can obtain the newest Android Emulator launch, which is enabled to run x86 elegant Android Virtual Devices (AVD) on computer systems that use AMD processors. This thrilling replace makes the Android Emulator extra accessible to a brand new set of Android app builders that have been beforehand restricted to software program emulation, however can now have {hardware} accelerated efficiency. Moreover, for these of you who use Hyper-V to run your native app backend, the Android Emulator can now additionally coexist with different Hyper-V-backed purposes on Windows® 10.

Thanks to a brand new Microsoft Windows Hypervisor Platform (WHPX) API and up to date open-source contributions from Microsoft, much more Android app builders can make the most of all of the velocity enhancements and options within the Android Emulator.

Android Emulator working on Windows 10 with AMD Processor
Screenshot Configuration: Asus ROG Strix GL 702ZC, Processor: AMD® Ryzen 7 1700 Processor, Chipset: AMD 5350, Graphics: AMD® Radeon RX580

Support for these applied sciences was initially obtainable within the v27.3.8 Android Emulator canary launch and at present we’re releasing this set of preview options (AMD processor & Hyper-V assist) on the steady channel for extra suggestions. Alongside this replace, we have now added extra velocity enhancements in loading emulator snapshots for these builders utilizing the Intel® Hardware Accelerated Execution Manager (HAXM).

How to make use of

Linux

If you employ Linux for Android app growth, the Android Emulator will proceed to make use of the native Kernel-based Virtual Machine (KVM) hypervisor for each Intel and AMD elegant computer systems for a quick and performant virtualization resolution. An replace to the v27.3.8 Android Emulator will give you the brand new snapshots UI together with enhancements to efficiency, reliability and useful resource utilization.

macOS

For OS X v10.10 Yosemite and better, the Android Emulator makes use of the built-in Hypervisor.Framework by default, and falls again to utilizing the Intel Hardware Accelerated Execution Manager (HAXM) if Hypervisor.Framework fails to initialize (corresponding to when working on OS X v10.9 or earlier). Once you replace to the newest Android Emulator on macOS, additionally, you will have entry to the brand new snapshots UI together with beneath the hood efficiency and reliability enhancements.

Android Emulator – Snapshots Extended Controls

Microsoft Windows

On Intel x86-based computer systems, the Android Emulator will proceed to make use of Intel HAXM by default. Intel HAXM is a mature and open-sourced hypervisor resolution developed by Intel. Thanks to on-going growth by Intel, the quickest emulator efficiency on Windows continues to be with Intel HAXM. To obtain the newest Intel HAXM v7.2.0, examine for updates within the Android SDK Manager.

If you will have an AMD processor in your laptop you want the next setup necessities to be in place:

  • AMD Processor – Recommended: AMD® Ryzen processors
  • Android Studio 3.2 Beta or larger – obtain through Android Studio Preview web page
  • Android Emulator v27.3.8+ – obtain through Android Studio SDK Manager
  • x86 Android Virtual Device (AVD) – Create AVD
  • Windows 10 with April 2018 Update
  • Enable through Windows Features: “Windows Hypervisor Platform”

Windows Hypervisor Platform setting in Windows 10

If you wish to use Hyper-V similtaneously the Android Emulator in your Intel processor-based laptop, additionally, you will want the identical Android Studio and Android Emulator variations as listed above, however with the extra necessities:

  • Enable through Windows Features: “Hyper-V” – Only obtainable for Windows 10 Professional/Education/Enterprise
  • Intel Processor : Intel® Core processor that helps Virtualization Technology (VT-x), Extended Page Tables (EPT), and Unrestricted Guest (UG) options. Additionally VT-x must be enabled within the BIOS.

For extra setup ideas and troubleshooting particulars, take a look at the documentation web page.

Again, for current Windows customers who’ve an Intel-based processor, the Android Emulator will proceed to make use of the quicker and really useful Intel HAXM configuration. For these utilizing AMD processors, and people who use Hyper-V hypervisors, this needs to be an thrilling step ahead to begin utilizing the Android Emulator.

Next Steps & Feedback

Download the newest Android Emulator from the Android Studio 3.2 Beta SDK Manager for the newest efficiency updates throughout all supported platforms that you’re utilizing. We are going to proceed to spend money on efficiency enhancements for every of the platforms and we look ahead to your suggestions and have requests.

If you discover a bug or situation, be at liberty to file a problem. Connect with us — the Android Studio growth staff ‐ on our Google+ web page or on Twitter.

By admin