The android simulator has always been known for its slow running speed. This article describes how to use intel haxm technology to accelerate the android simulator so that the simulator runs more slowly than a real machine, completely solving the problem of slow running of the simulator.
Intel haxm (hardware accelerated execution manager) uses Intel (r) virtualization technology (VT)-based hardware acceleration. Therefore, the CPU needs to support VT and is limited to Intel CPU, which is not compatible with amd cpu, intel haxm is described as follows:
- Use intel VT technology;
- Provides hardware acceleration for simulated running of Android x86 Virtual Devices;
- Integrate with Android SDK;
The hardware requirements are as follows:
- Supports Intel processors such as VT-X, em64t, and execute disable bit;
- At least 1 GB available memory
Supported operating systems:
- Windows 7 (32/64-bit)
- Windows Vista (32/64-bit)
- Windows XP (32-bit only)
- OS X 10.6 or 10.7 (32/64-bit)
Download and install intel haxm extensions
Start Android SDK manager. In the package list, the intel haxm extension, check, download, and do not need to go to Intel's website. For example:
After you download haxm, you need to run the installer to install it. The download directory of haxm isandroid-sdk\extras\intel\Hardware_Accelerated_Execution_Manager
, RunIntelHaxm.exe
Install the SDK. Follow the instructions on the screen to install it step by step.
Download Android x86 Images
Android SDK manager already has an x86 image of 4.1.2, so select an x86 image of 4.1.2, as shown in:
Use Android x86 Images
Create or edit the android simulator and set the CPU/ABI of the simulatorIntel Atom X86
, As shown in:
If there are no errors in the above steps, now the android simulator runs at almost the same speed as the real machine, and there is no need to envy the IOS simulator on the Mac platform.
Remember to install Intel's haxm on the x86 simulator Kernel