在使用管理器运行任何模拟器时,我遇到了一个错误:
...AppData\Local\Android\Sdk\emulator/emulator-x86.exe: invalid option -- '-enable-whpx' WindowsHypervisorPlatform = on标志被设置为...sdk\emulator\lib/advancedFeatures.ini这是详细模式的一部分:
emulator: Checking whether Windows Hypervisor Platform (WHPX) is available.
emulator: Could not load library WinHvPlatform.dll
emulator: WHPX is either not available or not installed.
emulator: CPU Acceleration: working
emulator: CPU Acceleration status: HAXM version 7.2.0 (4) is installed and usable.Windows平台在windows特性中被选中,WinHvPlatform.dll存在于C:\Windows\System32中
如何启用或安装WHPX?
发布于 2018-10-11 20:03:04
我的问题通过简单的改变模拟器引擎来解决。
根据文档,您可以使用-engine标志指定模拟器引擎。上述错误是使用classic引擎发生的。当我将引擎更改为auto或qemu2时,模拟器启动时没有出错。若要更改引擎,请使用命令行转到.../sdk/emulator目录并运行:
emulator.exe -list-avds这将输出虚拟设备名称。
然后跑:
emulator.exe -avd YOUR_DEVICE_NAME -engine qemu2或
emulator.exe -avd YOUR_DEVICE_NAME -engine auto我希望这能帮到你。
https://stackoverflow.com/questions/51900074
复制相似问题