打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
加快android emulator启动速度
http://developer.android.com/tools/devices/emulator.html
In 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:

    1. Start the Android SDK Manager,select Extras andthen select Intel Hardware AcceleratedExecution Manager.
    2. After the download completes,execute /extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.dmg.
    3. Double clickthe IntelHAXM.mpkg iconto begin installation.
    4. Follow the on-screen instructions to completeinstallation.
    5. 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





本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
ADT中通过Android SDK Manager安装Intel Hardware Accelerated Execution Manager(Haxm) | 在路上
intel AVD加速
完美解决Android中AVD模拟器启动慢(卡在Android启动界面)等问题
ubuntu11.10(32bit)编译android源码2.3(gingerbread)并运行emulator
Andy the Android Emulator
android如何运行命令行?
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服