What about the Android emulator running slow?
If you don’t have an Android phone, you can install an Android emulator on your computer, because it can simulate the Android phone system on your computer and give your Android a full experience of the Android phone system’s charm. But some netizens reflect that the Android simulator is running too slow.
Now let’s look at how the simulator accelerates.
In the Android development process, it is found that the Android simulator is not generally slow, mainly because the Android simulator defaults to the ARM processor, where there are two ways to do this:
① uses Intel’s virtual hardware acceleration to speed up the Android simulator to solve the problem of slow Android simulators;
② uses the Genymotion simulator, mainly uses the virtual box VM principle;
Adopting HAXM Technology
1, restart the computer, press “F2” key to enter “BIOS”; Note: Different computers enter the “BIOS” in different ways, commonly used to enter the BIOS shortcuts are: “ESC”, “F2”, “F10”, “F12”, “Enter”, “Delete” and so on; 2, switch to revisit pagination below;
3, the last “Intel Virtual Technology” set to “[Enabled]”;
Note: ① Some CPUs do not support virtual hardware acceleration, it is known that i3 and its Class I and above support virtual hardware acceleration;
② different computer options may also be different, as shown below are two different computer options;
4, press “F10” (“Save and Exit”);
5, restart the computer;
6, open “Android SDK Manager”, updated “Extras->intel x86 emulator Accelerator (HAXM installer)”;
7, install Intel’s Virtual hardware acceleration Software “INTELHAXM”, such as “” D: \android\adt-bundle-
Execution_manager\intelhaxm. exe “”
8, use the shortcut key “Win + R” to open the running window, enter “cmd”, click OK;
9, enter “SC query INTELHAXM” Query the current INTELHAXM state;
Note: If the error message is ejected: “SC is not an internal or external command, nor a running program or batch file”:
1 If you are missing “C: \windows\system32\sc. exe”, consider using administrator privileges to reinstall INTELHAXM;
2) may consider appending in the path of environment variables: “%SYSTEMROOT%/SYSTEM32;%SystemRoot%;%systemroot%/system32/wbem”;
10, if the “INTELHAXM” service is closed, you can enter: “SC start INTELHAXM” to open.
11. Set Cpu/abi when creating the emulator: Intel Atom (x86). Note: This processor can implement virtual hardware acceleration with INTELHAXM. When you start the emulator, you will notice that during startup, “HAX is working and emulator runs in fast virt mode” indicates that virtual hardware acceleration has been turned on to speed up the simulator.
Using the Genymotion Emulator
1, to genymotion website to download the latest Genymotion simulator: NOTE: Genymotion simulator faster than the average Android simulator is much faster oh.
2, the installation process is as follows, in the middle will be installed in passing a virtual box dummy machine OH.
3. Open the software genymotion on the desktop.
4. Click Yes.
5. Click Connect in the lower right corner to login.
6, enter the user name and password to connect.
7, choose Android version; Select a device model; Select a avaliable virtual devices; Click Next.
8. Click Next.
9, select a virtual devices, click Play.
10, the other is the same as the ordinary Android simulator Oh.
11, after the use of the simulator to repeat the 3rd and 9th steps on it.
12, note: If the genymotion started the process of the following error: Open Task Manager to kill the “adb. exe” process, open it again; start the order of the software: start the genymotion first and start eclipse.
13, if the “Installation failed error: The system cannot find the specified path”, you need to check environment variables, TEMP and TMP, the path contains a Chinese name, etc. the TEMP and TMP defaults for the user are:%userprofile%\ Appdata\local\temp system TEMP and TMP defaults to%Systemroot%\Temp