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

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