E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY) on Nexus 9 + Android 6

前端 未结 2 964
陌清茗
陌清茗 2021-02-06 03:25

I\'m porting an old big application in Cordova 3.4, from Eclipse to Android Studio because this application used a library that now has been updated in Android 6.

After

相关标签:
2条回答
  • 2021-02-06 04:10

    I found the answer about this.

    After API 21,you would get GL thread problem which not occured in API 19.

    Use this code, it will run fine!

                XXX.queueEvent(new Runnable() {
                @Override
                public void run() {
                    //ADD YOUR FUNCTION
                }});
    
    0 讨论(0)
  • 2021-02-06 04:16

    In layout.xml,maybe u defined a GLSurfaceView or other View to put your image in.

    Is it right?

    So if u put the image to your whole screen, the error wouldn`t be occured.

    0 讨论(0)
提交回复
热议问题