2016-05-17 64 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的方式來表達謝意。 –