最近在学习Android studio。遇到一个模拟器的问题整了很久才好。记录如下:
辛辛苦苦敲了代码准备运行到模拟器上,结果看到下面错误:
Canot lunch AVD in emulater
Output:
emulator:ERROR:X86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
这是啥错误?(一脸懵逼状.....)
一步一步解决:
需要安装intelhaxm-android.exe在android-sdk-windows\extras\intel\Hardware_Accelerated_Execution_Manager找到安装文件安装
结果安装不上....
后来查看需要cpu支持intel的虚拟加速。需要在BIOS --》Security-->Virtualization里的Intel (R) Virtualization Technology打成Enabled
打开后安装HAXM还是安装不上.。百度了好久发现是Windows的Hyper-v搞得鬼。在程序--》启用或关闭windows功能里找到Hyper-v去掉打钩。电脑重启
然后重新运行intelhaxm-android.exe 顺利安装。
再次运行Android studio,avd顺利启动!