mac-android-虛機加速

weixin_34067049發表於2015-12-20

  mac下進行android程式設計不可避免會碰到android虛擬機器問題,macbook pro啟動虛機時報錯:

Starting emulator for AVD 'NEW'
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!

  原因是HAXM(使用了VT技術)沒正確安裝和載入。mac下先要允許載入未簽名驅動(詳情請點選),命令如下:

sudo nvram boot-args="kext-dev-mode=1"

  然後是HAXM的安裝,android SDK只是下載了,需要手工到的extra下去安裝(詳情請單擊),執行命令:

./HAXM\ installation

  最後只想說一句:加速後的虛機好快,顛覆我以前對虛機的看法。

 

相關文章