使用Intel HAXM为Android模拟器加速,媲美真机

来源:互联网 发布:linux nginx 支持php 编辑:程序博客网 时间:2024/04/29 10:58

http://www.cnblogs.com/shortboy/archive/2013/03/11/2953610.html

安装android的IntelHaxm.exe时出错的问题

This host supports Intel VT-x, but Intel VT-x is disabled.

IntelVT-x might be disabled if it has been disabled in the BIOS/firmware settings orthe host has not been power-cycled since changing this setting.

(1)Verify that the BIOS/firmware settings enable Intel VT-x and disable 'trustedexecution.'

(2)Power-cycle the host if either of these BIOS/firmware settings have beenchanged.

(3)Power-cycle the host if you have not done so since installing VMwareWorkstation.

(4)Update the host's BIOS/firmware to the latest version.

上面的错是因为cpu的虚拟化没有得到允许开启,要改过来必须要改动BIOS 设置

 

F11或者其他键(各机器有不同) 键进入BIOS 设置实用程序 ,使用箭头键,滚动到“Config”,然后按Enter  ,滚动到“CPU”,然后按Enter  ,滚动到Intel  Virtualization Technology,然后按Enter  
选择“Enabled”,然后按Enter  ,按Enter 键继续 ,按F10 键以保存并退出 ,选择“Yes”,然后按Enter  ,完全关机(关闭电源),等待几秒钟,然后重新启动计算机

然后再安装就不会再弹出上面的错了

 

 

----------------------
http://www.189works.com/article-107618-1.html

Intel HAXM (Hardware Accelerated Execution Manager) 使用基于 Intel(R) Virtualization Technology (VT) 的硬件加速, 因此需要 CPU 支持 VT , 而且仅限于 Intel CPU, 与 AMD CPU 无缘, Intel HAXM 的描述如下:

  • 使用 Intel VT 技术;
  • Android x86 虚拟设备的模拟运行提供硬件加速;
  • Android SDK 集成;

硬件需求如下:

  • 支持 VT-x, EM64T 以及 Execute Disable Bit 的 Intel 处理器;
  • 至少 1GB 可用内存

支持的操作系统:

  • Windows 7 (32/64-bit)
  • Windows Vista (32/64-bit)
  • Windows XP (32-bit>

    下载 HAXM 之后, 需要运行安装程序来进行安装, HAXM 下载的目录是 android-sdk\extras\intel\Hardware_Accelerated_Execution_Manager , 运行IntelHaxm.exe 进行安装, 根据屏幕提示,一步一步安装即可。

    下载 Android x86 镜像

    Android SDK Manager 中已经有了 4.1.2 的 x86 镜像, 因此选择 4.1.2 x86 镜像, 如下图所示:

    使用 Android x86 镜像

    新建或者编辑 Android 模拟器, 将模拟器 CPU/ABI 设置为 Intel Atom X86 , 如下图所示:

    如果上面的步骤都没有出错, 现在, Android 模拟器运行的速度几乎可以媲美真机了, 再也不用羡慕 MAC 平台上的 iOS 模拟器。

原创粉丝点击