2015-06-05 54 views
4

命令我運行:運行AVD是給錯誤

C:\Users\bhaishaki\AppData\Local\Android\sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5_API_22_x86 
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it. 
could not get wglGetExtensionsStringARB 
could not get wglGetExtensionsStringARB 
could not get wglGetExtensionsStringARB 
could not get wglGetExtensionsStringARB 
could not get wglGetExtensionsStringARB 
could not get wglGetExtensionsStringARB 
could not get wglGetExtensionsStringARB 
could not get wglGetExtensionsStringARB 
getGLES1ExtensionString: Could not find GLES 1.x config! 
Failed to obtain GLES 1.x extensions string! 
Could not initialize emulated framebuffer 
+2

在猜測我會說'添加''-gpu off''到您的命令行來禁用OpenGLES仿真! – lane

+0

我是新學員。請給我一個描述性的解決方案。 –

+0

當然 - 嘗試運行:'C:\ Users \ bhaishaki \ AppData \ Local \ Android \ sdk \ tools \ emulator.exe -netdelay none -n​​etspeed full -gpu off -avd Nexus_5_API_22_x86' – lane

回答

8

如果您使用Android Studio中,啓動AVD管理,編輯的Nexus AVD(即點擊鉛筆圖標),並在結果窗口中取消選中「使用主機GPU」複選框。

這爲我解決了錯誤,並允許我從Android Studio啓動模擬器。

+3

找不到選項在Android Studio 2.1.2 –

3

檢查這些鏈接:Emulator!!Emulator!!

注意:編輯仿真器Uncheck 'Use Host GPU' option.。仍然有任何問題只是讓我知道

+1

是的,它工作正常 –

+0

它的好處,你得到解決方案:) –

2

你確定你下載了所選設備的api級別所需的包。

我建議你打開SDK管理器並檢查是否安裝了所需的Api軟件包。

2

轉到AVD管理器。 - 編輯你的AVD。 - 取消選中「使用主機GPU」選項。 - 點擊完成(保存)。 - 再次啓動AVD。

2

編輯你的AVD,在圖形上選擇Software-GLES而不是Auto.Its工作。我也在高級設置選項中將VM堆大小更新爲384。

3

以下的答案將會爲Android 2.0及以上的用戶

一旦你選擇「軟件 - GLES 2.0」一切都會好起來。

步驟:

1)Tools -> Android -> AVD Manager 
2)Select "Edit" (a green pencil like icon). 
3)Select "Show Advanced Settings". 
4)In the Graphics drop list select "Software - GLES 2.0" 
5)Click finish to save and now again build the gradle. 

下面的圖像顯示了,我不得不刪除錯誤的設置。 For further reference