Mac 下使用Ionic x86 emulation currently requires hardware acceleration 问题

Running command: /Users/swizard/Documents/dev/ionic/q-metro/hooks/after_prepare/010_add_platform_class.js /Users/swizard/Documents/dev/ionic/q-metro
add to body class: platform-android
ANDROID_HOME=/Users/swizard/Documents/dev/android-sdk-macosx
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home
No emulator specified, defaulting to android1
Waiting for emulator...
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX is not installed on this machine (/dev/HAX is missing).

  如果出现如下问题说明Intel x86 Emulator Accelerator (HAXM Installer) 没有被安装。

运行android skd 打开sdk manager, 安装 Intel x86 Emulator Accelerator (HAXM Installer) 直至 installed 状态。

这时回到命令行

到 android-sdk-macosx/extras/intel/Hardware_Accelerated_Execution_Manager目录下 执行 

./silent_install.sh

  再次执行 

ionic emulate android

  就不会出现问题了

posted @ 2016-03-01 08:47  Swizard  阅读(1510)  评论(0编辑  收藏  举报