Flutter中模擬器無法啓動的解決方法

執行命令flutter emulators --launch Pixel2 後報錯如下:

Failed to launch emulator: RegGetValueW failed 2 緋葷粺鎵句笉鍒版寚瀹氱殑鏂囦歡銆? emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Windows Hypervisor Platform (WHPX) is properly installed and usable. CPU acceleration status: VT feature disabled in BIOS/UEFI

執行emulator-check.exe accel後報錯信息提示 HAXM沒有安裝,“HAXM”解釋如下圖所示。

image

它的作用是管理硬件加速的,估計是用了這個模擬器就能告別Eclipse時代的龜速。也可以在Intel官網下載HAXM,Android SDK已經集成了這個軟件,直接安裝即可。

它的位置放在這個目錄下(因人而異):

當我雙擊安裝,問題又來了:

 

BaiduShurufa_2014-12-22_13-54-59

意思是如果安裝失敗了,那多半是BIOS裏面的“Virtualization Technology”選項沒有打開,去BIOS裏面打開就可以了。

IMG_20141222_143735

IMG_20141222_143452

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

 

 

 

參考資料:

1. https://docs.microsoft.com/zh-cn/xamarin/android/get-started/installation/android-emulator/troubleshooting?pivots=windows

2. https://docs.microsoft.com/zh-cn/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?pivots=windows

3. https://segmentfault.com/a/1190000015816769

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章