解决Android Studio 模拟器gpu模式设置错误的问题
有一次我修改了模拟器的gpu设置,导致后来一直启动不了模拟器,报以下错误
Emulator: emuglConfig_init: Invalid GPU mode 'angle9', use one of: host swiftshader_indirect. If you're already using one of those modes, the emulator installation may be corrupt. Please re-install the emulator. angle angle_indirect mesa swiftshader swiftshader_indirect
Emulator: emulator: ERROR: Invalid GPU mode 'angle9', use one of: host swiftshader_indirect. If you're already using one of those modes, the emulator installation may be corrupt. Please re-install the emulator. angle angle_indirect mesa swiftshader swiftshader_indirect
Emulator: emulator: ERROR: OpenGLES emulation failed to initialize. Please consider the following troubleshooting steps:
后来输入以下命令解决了
emulator -avd None_Device_API_26 -gpu host
None_Device_API_26 代表模拟器的名字