Android Studio – 模拟器 – eglSurfaceAttrib未实现

我用android studio创build了一个应用程序,决不会在任何文件中改变一个单词。

当试图在模拟器上运行它我得到了以下错误:

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 

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

 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 

我已经find了同样的事情,但只在具有使用主机GPU设置的模拟器上打勾。 尝试closures,你将不会再看到这些警告(而模拟器将运行可怕,慢慢地..)

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

修复:在运行之前解锁设备。

嗨,伙计们:想想我可能有这个问题的解决办法:

听起来很荒谬,但尝试解锁你的虚拟设备; 即用你的鼠标轻扫和打开。 你的应用程序应该工作!