安装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”,在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 enable
please refer to the intel HAXM documentation for more information
该错误是需要BIOS里面的“Virtualization Technology”选项没有打开,如下图:
重启电脑还是无法安装成功,还是出现“this computer does not support intel virtualization Technology(VT-x)”错误,则需要:
打开控制面板-》打开程序和功能-》启用和关闭Windows功能-》找到Hyper-V取消选择-》确定,然后重启电脑,再重新安装intelhaxm-android就没有问题了
安装成功后,可以cmd运行下图:
可能还会出现问题:模拟器RAM过大
D:\Android\sdk\tools\emulator.exe -avd Nexus_5_API_23_x86 -netspeed full -netdelay none emulator: WARNING: Requested RAM size of 1536MB is too large for your environment, and is reduced to 1152MB. emulator: device fd:596HAXM is not working and emulator runs in emulation mode emulator: The memory needed by this AVD exceeds the max specified in your HAXM configuration. emulator: AVD RAM size = 1152 MB emulator: HAXM max RAM size = 1024 MB emulator: You might want to adjust your AVD RAM size and/or HAXM configuration to run in fast virt mode. Cannot set up guest memory 'pc.ram': Invalid argument Error accepting connection, aborting 解决问题是:将模拟器的RAM改为512
评论列表: