ubuntu虚拟机编译AOSP源码,安卓模拟器启动失败, ERROR: x86_64 emulation currently requires hardware acceleration

VMware workstation安装 ubuntu虚拟机编译AOSP源码,启动emulator失败,报错emulator: ERROR: x86_64 emulation currently requires hardware acceleration!(模拟器需要硬件加速)该文章用于在虚拟机中启动安卓模拟器同样适用

ubuntu虚拟机编译AOSP源码,安卓模拟器启动失败, ERROR: x86_64 emulation currently requires hardware acceleration

解决办法:

先关闭虚拟机,选择处理器,勾选虚拟化Intel VT-x/EPT和AMD-V/RVI(V),启动虚拟机,重新执行source build/envsetup.sh 和lunch命令,接下来就能正常启动虚拟机了

ubuntu虚拟机编译AOSP源码,安卓模拟器启动失败, ERROR: x86_64 emulation currently requires hardware acceleration

ubuntu20.4编译AOSP