http://developer.android.com/tools/devices/emulator.htmlIn order to make the Android emulator run faster and be moreresponsive, you can configure it to take advantage of hardwareacceleration, using a combination of configuration options,specific Android system images and hardware drivers.
Using SDK manager to download/install x86 system image
1. ConfiguringGraphics Acceleration
Graphics acceleration for the emulator takes advantage of yourdevelopment computer's graphics hardware, specifically its graphicsprocessing unit (GPU), to make screen drawing faster.
SDK Tool version >= 17
SDK Platform API version >= 15 (i.e. >= android4.0.3)
In avd, specify "Use Host GPU", note not to specifysnapshot
Plus, you can specify to use GPU acceleration(specify "-gpu on" in target's additional emulator command lineoptions) at runtime
2. ConfiguringVirtual Machine Acceleration
Caution: As of SDK Tools Revision17, the virtual machine acceleration feature for the emulator isexperimental; be alert for incompatibilities and errors when usingthis feature.
Many modern CPUs provide extensions for running virtual machines(VMs) more efficiently. Taking advantage of these extensions withthe Android emulator requires some additional configuration of yourdevelopment system, but can significantly improve the executionspeed. Before attempting to use this type of acceleration, youshould first determine if your development system’s CPU supportsone of the following virtualization extensions technologies:
- Intel Virtualization Technology (VT, VT-x, vmx) extensions
- AMD Virtualization (AMD-V, SVM) extensions (only supported forLinux)
Note: Retina MACBook Pro (i7-3635QM) supports VT
Note: Virtualizationextensions are typically enabled through your computer's BIOS andare frequently turned off by default. Check the documentation foryour system's motherboard to find out how to enable virtualizationextensions.
To use virtual machine acceleration with the emulator, you need thefollowing version of Android development tools. Usethe Android SDKManager to install these components:
- Android SDK Tools, Revision 17 or higher
- Android x86-based system image
Virtual machine acceleration on a Mac requires the installation ofthe Intel Hardware Accelerated Execution Manager (Intel HAXM)kernel extension to allow the Android emulator to make use of CPUvirtualization extensions.
Configuring VM Acceleration on Mac
To install the Intel HAXM kernel extension:
- Start the Android SDK Manager,select Extras andthen select Intel Hardware AcceleratedExecution Manager.
- After the download completes,execute
/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.dmg
. - Double clickthe IntelHAXM.mpkg iconto begin installation.
- Follow the on-screen instructions to completeinstallation.
- After installation completes, confirm that the new kernelextension is operating correctly by opening a terminal window andrunning the following command:
kextstat | grep intel
You should see a status message containing the followingextension name, indicating that the kernel extension is loaded:
com.intel.kext.intelhaxm
Restart ECLIPSE
recreate avd to "Use Host GPU" in x86 system image
start avd
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。