Android Studio - 模拟器 - eglSurfaceAttrib 未实现 [英] Android Studio - Emulator - eglSurfaceAttrib not implemented

查看:29
本文介绍了Android Studio - 模拟器 - eglSurfaceAttrib 未实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用 android studio 创建了一个应用程序,从不更改任何文件中的单个单词.

I have created an application with android studio, never change a single word in any file.

尝试在模拟器上运行时出现以下错误:

when trying to run it on the emulator I got the following error:

W/EGL_emulation﹕ eglSurfaceAttrib not implemented
W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa6c1ace0,error=EGL_SUCCESS
I/Choreographer﹕ Skipped 45 frames!  The application may be doing too much work on its main thread.
W/EGL_emulation﹕ eglSurfaceAttrib not implemented
W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa6c1ace0, error=EGL_SUCCESS

我在真实设备上运行时没有遇到同样的问题:

I am not getting the same problem when I run it on a real device:

W/IInputConnectionWrapper﹕ getExtractedText on inactive InputConnection
W/IInputConnectionWrapper﹕ getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper﹕ getSelectedText on inactive InputConnection
W/IInputConnectionWrapper﹕ getTextAfterCursor on inactive InputConnection
W/art﹕ Before Android 4.1, method int android.support.v7.internal.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView

推荐答案

我发现了同样的问题,但仅限于勾选了使用主机 GPU 设置的模拟器.尝试将其关闭,您将不再看到这些警告(并且模拟器会运行得非常糟糕,非常缓慢......)

I've found the same thing, but only on emulators that have the Use Host GPU setting ticked. Try turning that off, you'll no longer see those warnings (and the emulator will run horribly, horribly slowly..)

根据我的经验,这些警告是无害的.请注意,错误"是 EGL_SUCCESS,这似乎表明根本没有错误!

In my experience those warnings are harmless. Notice that the "error" is EGL_SUCCESS, which would seem to indicate no error at all!

这篇关于Android Studio - 模拟器 - eglSurfaceAttrib 未实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆