Android Studio安裝及常見錯誤

jopen 9年前發布 | 34K 次閱讀 Android Studio開發工具 Android Studio
Android Studio 1.0 已經放出來了,以后的Android平臺開發激昂逐步從Eclipse向Android Studio遷移,為了能不落伍我也特意從Google下載了Android Studio的安裝包,并且興高采烈地創建了我的第一個android項目。但是當運行的時候就他么悲催了。

Android Studio安裝及常見錯誤

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”到底是什么呀?

Android Studio安裝及常見錯誤

這是Inter官網告訴我的,作用是管理硬件加速的,估計是用了這個東西模擬器就能告別Eclipse時代的龜速。

你也可以在Inter官網下載這個HAXM,當然Android SDK已經集成了這個軟件,你需要做的就是找到他,然后安裝它就是了。

他的位置放在這個目錄下:

Android Studio安裝及常見錯誤

當然你的位置可能會不一樣,如果找不到就沒必要死磕開發了。

如果問題就這樣解決了,那也太小兒科了吧;當我雙擊安裝,問題又來了:

Android Studio安裝及常見錯誤

 
this computer meets the requirements for haxm but intel virtualization technology(VT-x) is not turned onHAXM cannot be installed until VT-x is enable 
please 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 Studio安裝及常見錯誤

Android Studio安裝及常見錯誤

重新啟動安裝,就成功了!

Android Studio安裝及常見錯誤

Android Studio安裝及常見錯誤

讓我們看看Android 5.0炫酷的界面吧:

Android Studio安裝及常見錯誤


非原創,原文鏈接:

http://www.cnblogs.com/csulennon/p/4178404.html


補充:

如果出現:

 HAX is not working and emulator runs in emulation mode

請將RAM改為1G,具體原因請看:

http://stackoverflow.com/questions/21031903/how-to-fix-hax-is-not-working-and-emulator-runs-in-emulation-mode#

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!