2016-05-17 109 views
0

我正在学习Android编程的基础知识。我试图模拟我的测试应用程序,并得到以下错误。我正在模拟使用API​​ 23,Android 6.0(Marshmallow),并在模拟Nexus 5或4时获得相同的错误。我应该怎么做?Android Studio 2.1.1模拟器错误

错误消息:

Cannot launch AVD in emulator. Output: emulator: WARNING: VM heap size set below hardware specified minimum of 128MB init: Could not find wglGetExtensionsStringARB! emulator: WARNING: Setting VM heap size to 384MB getGLES1ExtensionString: Could not find GLES 1.x config! Hax is enabled Failed to obtain GLES 1.x extensions string! Hax ram_size 0x60000000 HAX is working and emulator runs in fast virt mode. Could not initialize emulated framebufferaudio: Failed to create voice `goldfish_audio_in' qemu-system-i386.exe: warning: opening audio input failed adb_server_notify: Failed to establish connection to ADB server console on port 5554, ADB on port 5555 emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.

回答

2

遵循以下步骤:

  1. 转到AVD管理
  2. 编辑您的AVD
  3. 取消选中“使用主机GPU'option。
  4. 单击完成(保存)。
  5. 然后开始再次AVD
+6

感谢您的指导。虽然我在AVD编辑菜单中找不到'USeHost GPU'选项,但通过将'Graphics'选项更改为Software- GLES 2.0为我工作。感谢你的帮助! – user6347318

-1

更改“图形”选项设置为“软件 - GLES 2.0”已经为我工作。

+2

请不要添加“谢谢”作为答案。投入一些时间在网站上,您将获得足够的[特权](// stackoverflow.com/privileges)来提供您喜欢的答案,这就是Stack Overflow的方式来表达谢意。 –