Android Studio 1.0 已經放出來了,以后的Android平台開發激昂逐步從Eclipse向Android Studio遷移,為了能不落伍我也特意從Google下載了Android Studio的安裝包,並且興高采烈地創建了我的第一個android項目。但是當運行的時候就他么悲催了。
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沒有開,可是“HAXM”到底是什么呀?
這是Inter官網告訴我的,作用是管理硬件加速的,估計是用了這個東西模擬器就能告別Eclipse時代的龜速。
你也可以在Inter官網下載這個HAXM,當然Android SDK已經集成了這個軟件,你需要做的就是找到他,然后安裝它就是了。
他的位置放在這個目錄下:
當然你的位置可能會不一樣,如果找不到就沒必要死磕開發了。
如果問題就這樣解決了,那也太小兒科了吧;當我雙擊安裝,問題又來了:
this computer meets the requirements for haxm but intel virtualization technology(VT-x) is not turned onHAXM cannot be installed until VT-x is enableplease refer to the intel HAXM documentation for more information
好吧,繼續尋求幫助Inter官方的教程有這樣一段話:連接地址:https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows
Intel VT-x not enabled
In some cases, Intel VT-x may be disabled in the system BIOS and must be enabled within the BIOS setup utility. To access the BIOS setup utility, a key must be pressed during the computer’s boot sequence. This key is dependent on which BIOS is used but it is typically the F2, Delete, or Esc key. Within the BIOS setup utility, Intel VT may be identified by the terms "VT", "Virtualization Technology", or "VT-d." Make sure to enable all of the Virtualization features.
意思是如果安裝失敗了,那多半是BIOS里面的“Virtualization Technology”選項沒有打開,去BIOS里面打開就可以了。
重新啟動安裝,就成功了!
讓我們看看Android 5.0炫酷的界面吧: