出现问题的原因:
1、emulator33.XX版本以后不再支持Intel x86 Emulator Accelerator
2、android studio不再支持emulator33.XX以下版下载,所以只要你现在装android studio,在装AVD的时候最低是emulator35.XX,
3、emulator35.XX加速只能用Hypervisor或者AEHD
4、Hypervisor加速需要WIN10版本1909以上或者WIN11而且要硬件支持。
5、不支持Hypervisor加速只能用AEDH。
出现报错
1、用命令行运行虚拟机:emulator -avd xxxx有下面报错
ERROR | crashhandler_die: fatal: OpenGLES emulation failed to initialize. Please consider the following troubleshooting steps:
-
Make sure your GPU drivers are up to date.
-
Erase and re-download the emulator ($ANDROID_SDK_ROOT/emulator).
-
Try software rendering: Go to Extended Controls > Settings > Advanced tab and change "OpenGL ES renderer (requires restart)" to "Swiftshader".
Or, run emulator from command line with "-gpu swiftshader_indirect". 4. Please file an issue to https://issuetracker.google.com/issues?q=componentid:192727 and provide your complete CPU/GPU info plus OS and display setup.
解决办法:
1、如果你还有emulator33.XX以下版本,android studio还能识别的最好不要删掉可以一直用。
2、如果是新安装的android studio,AVD是emulator35.XX的先看一下电脑WIN10版本,如果是WIN10版本1803以下是不能支持虚拟机的,只能升级到1803或者更高版本。
3、建议电脑WIN10系统升级到1803就可以了,最新的20H2非常占内存非常卡。