【问题标题】:Android Emulator cannot be started in visual studio 2017Android Emulator 无法在 Visual Studio 2017 中启动
【发布时间】:2019-12-15 01:02:17
【问题描述】:

我正在开发 Xamrin 项目,当我在 Android 模拟器上运行我的应用程序时,每次尝试启动它时都会出现此错误:

getGLES2ExtensionString: Could not find GLES 2.x config!  
Failed to obtain GLES 2.x extensions string!  
Could not initialize emulated framebuffer  
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.

我多次尝试重新创建安卓设备,但仍然无法正常工作。

有什么帮助吗?

【问题讨论】:

  • 编辑您的 AVD 并取消选中 使用主机 GPU 选项。然后保存并重新启动您的模拟器。
  • @LucasZhang-MSFT 已解决!谢谢。

标签: c# xamarin visual-studio-2017 android-emulator


【解决方案1】:

出现此问题的原因是 AVD 尝试使用系统的显卡渲染图形,但由于系统的图形驱动程序不是最新的或它不支持此功能而无法执行此操作,因此这里是解决方案。

1.编辑您的 AVD。

2.取消勾选Use Host GPU选项。

3.点击完成(保存)。

4.重启你的模拟器。

【讨论】: