Error while Running Android Application - Could no

2019-01-03 10:03发布

I am new to android programming. I was referring google developer website to learn android. While I was running an application UI, I got these errors.

 H:\SDK\tools\emulator.exe -avd Nexus_5_API_21_x86 -netspeed full -netdelay none
 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

I am using android studio.

6条回答
干净又极端
2楼-- · 2019-01-03 10:42
  • Go to AVD Manager.
  • Edit your AVD.
  • Select 'Software GLES2.0' option on Emulated Performance. (The reason is because some users did not install graphic video card drivers )
  • Click Finish (Save).
  • Start AVD again. enter image description here
查看更多
淡お忘
3楼-- · 2019-01-03 10:46

I recently faced the same issue, The problem occurs because AVD tries to render graphics using system's graphics card and could not do that either because your system's graphics driver is not up to date or it does not support this so here is the solution.

Step 1:

  • Update your Operating system graphics driver.
  • Restart your system.
  • Set your system's screen resolution as high as possible.
  • Try to start your AVD now.

Step 2:

  • If step 1 fails, Go to AVD Manager.
  • Edit your AVD.
  • Uncheck 'Use Host GPU' option.
  • Click Finish (Save).
  • Start AVD again.
查看更多
叼着烟拽天下
4楼-- · 2019-01-03 10:52

While configuring new device, use the option "Software - GLES 2.0" for Graphics under "Emulated Performance" category. This option will be seen once you click "Show Advanced Settings" while configuring AVD.

查看更多
做自己的国王
5楼-- · 2019-01-03 10:57

I had a very similar problem on my laptop which runs Windows 10 and has two GPUs: one within the Intel processor and the other is Nvidia. The error appears when the system uses the low performance Intel GPU. I needed to "run" Android Studio with "High performance NVIDIA processor" Most of the programs can be run with NVIDIA by right clicking the application link and then "Run with graphics processor" and then "High-performance NVIDIA processor"

Unfortunately this didn't work with the Android Studio application link for me. I had to go to Settings > Display > Graphics settings > Browse and then choose the Android Studio executable (studio and then studio64, I did it for the both of them) Then the application appear just under the Browse button, select the application, then Options, then select High performance.

查看更多
贪生不怕死
6楼-- · 2019-01-03 11:02

I just ran into this, and it was because I running via Windows Remote Desktop. When I logged on locally it worked fine.

查看更多
Lonely孤独者°
7楼-- · 2019-01-03 11:04

Make sure that you run your AVD manager not from eclipse go to installed directory that is android/AVD manager.exe and right click run as administrator and then make changes.

查看更多
登录 后发表回答