Android Studio:eglSurfaceAttrib 未实现
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24085777/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android Studio : eglSurfaceAttrib not implemented
提问by Sambulo Senda
Trying to debug using emulator an android application Im trying to code.
尝试使用模拟器调试一个 android 应用程序我正在尝试编码。
I get this error code
我收到此错误代码
W/EGL_emulation﹕ eglSurfaceAttrib not implemented
What does it mean when that error appears how can I fix it?
出现该错误是什么意思,我该如何解决?
回答by Ben Pearson
It's a problem with OpenGL. I've seen it before, most commonly with using GenyMotion and then sleeping/resuming my computer. Restarting the emulator and launching your app again should fix it.
这是 OpenGL 的问题。我以前见过它,最常见的是使用 GenyMotion 然后睡眠/恢复我的计算机。重新启动模拟器并再次启动您的应用程序应该可以修复它。
回答by Kevin Michael
When creating your emulator, try selecting "Use Host GPU" within the settings.
创建模拟器时,请尝试在设置中选择“使用主机 GPU”。
And if you try testing on a real device you likely, should face the same problem
如果您尝试在真实设备上进行测试,您可能会遇到同样的问题