The Android simulator is slow to run solution

Source: Internet
Author: User
Tags android sdk manager

In the Android development process, found that the speed of Android simulator is not generally slow, that is mainly because the Android simulator by default is caused by the ARM processor, here are mainly available in two ways:

① uses Intel virtual hardware acceleration to speed up the Android simulator to solve the problem of slow Android simulator.

② uses the Genymotion simulator, the main use is the virtual box VM principle;

Software Baidu Cloud Link: http://pan.baidu.com/s/1i39oLXr Password: 5t0f

Using HAXM Technology

1.

1), restart the computer, press "F2" key to enter the "BIOS";

Note: Different computers enter the "BIOS" in different ways, commonly used to enter the BIOS shortcut keys are: "ESC", "F2", "F10", "F12", "Enter", "Delete" and so on;

2), switch to the Configuration page below;

3), set the last "Intel Virtual technology" to "[Enabled]";

Note: ① Some CPUs do not support virtual hardware acceleration, it is now known that the i3 and above I-series support virtual hardware acceleration;

② different computer options may be different, such as two different computer options ;

4), press "F10" ("Save and Exit");

5), restart the computer;

The effect is as follows;

2.

Open "Android SDK Manager", update "Extras->intel x86 Emulator Accelerator (HAXM installer)";

Note: about how to update the Andorid SDK can be seen:

Http://jingyan.baidu.com/article/636f38bb267982d6b84610f0.html

HAXM 6.1.1 Display is not compatible with Windows

After updating Android, the user will find in Android manager that the Intel x86 emulator could not be installed now. The prompt error message is as follows:
Intel x86 Emulator Accelerator (HAXM installer) 6.1.1 not compatible with Windows
This issue starts with version 6.0.5. Users encounter this problem, can only manually download the corresponding package from Intel, manual installation.

Https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

3

Install Intel's Virtual hardware acceleration Software "INTELHAXM", such as "D:\Android\adt-bundle-

Windows-x86_64-20140702\sdk\extras\intel\hardware_accelerated_

Execution_manager\intelhaxm.exe ""

Note: Due to the latest version of INTELHAXM installation often failed, the old version can be installed to backup a copy to the Baidu Cloud

When installing Intelhaxm-android virtualization, Error:

This computer does not support Intel Virtualization Technology (VT-X) ...

The workaround is to open the Control Panel-"open programs and Features-" Enable and disable Windows Features-"Find Hyper-V deselect-" OK, then restart the computer, then reinstall Intelhaxm-android there is no problem.

4

1), use the shortcut key "Win + R" to open the running window;

2), enter "cmd", click OK;

5

Enter "SC query INTELHAXM" to query the current INTELHAXM status;

Note : If the error message pops up: "SC is not an internal or external command, nor is it a program or batch file that can be run." When

1), if "C:\Windows\System32\sc.exe" is missing, consider reinstalling INTELHAXM with administrator privileges;

2), may consider adding in the environment variable path: ";%systemroot%/system32;%systemroot%;%systemroot%/system32/wbem";

6

If the "INTELHAXM" service is turned off, you can enter: "SC start INTELHAXM" to open

7

1), set Cpu/abi:intel Atom (x86) when creating new simulator

Note: This processor can implement virtual hardware acceleration with INTELHAXM

2), start the emulator will find in the process of starting to prompt:

"Hax is working and emulator runs in fast virt mode" explains that virtual hardware acceleration has been turned on to speed up the emulator.

8

The effect of the simulator effect starts as follows:

END

Using the Genymotion simulator

1

Download the latest Genymotion simulator on the Genymotion website:

http://www.genymotion.com/

Or to the above Baidu Cloud link to download

Note: The Genymotion simulator is much faster than the normal Android simulator.

2

The installation process is as follows, and a virtual box VM will be installed in the middle:

3

Open the software on the desktop genymotion

4

Click Yes

5

Click Connect in the lower right corner to sign in

6

Enter the user name and password to connect;

Note: If there is a registration problem, the registration is successful but not logged in the problem, we use foreign mailbox to register, such as: Hotmail, Outlook mailbox, etc.;

In order to facilitate the update, I created a public account convenient for everyone to use, I hope you consciously obey, do not change the password casually, as shown, thank you!

7

Choose Android version;

Select device model;

Choose a avaliable virtual devices;

Click Next

8

Click Next

9

When a virtual devices is selected, click Play

10

The rest is the same as the normal Android simulator Oh,

Right-click Project Hellojni->run as-> Android application;

After running the following:

11

Repeat steps 3rd and 9th when using the simulator, thank you.

12

Note: If the following error occurred during Genymotion startup:

Open Task Manager to kill the "adb.exe" process and reopen it.

Start the software sequence: Start eclipse after starting genymotion;

13

If the "Installation failed error: The system cannot find the path specified", you need to check the environment variables, TEMP and TMP, whether the path contains Chinese names, etc.;

The user's TEMP and TMP defaults are:%userprofile%\appdata\local\temp

The system TEMP and TMP default is%Systemroot%\Temp

The effect is as follows:

14

How to click Add, there is no can update the emulator, at this time need to open the agent to update, the specific operation as shown:

Note: Questions about the proxy server can be seen:

Http://jingyan.baidu.com/article/636f38bb267982d6b84610f0.html

END

The Android simulator is slow to run solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.