Android emulator black screen

Android emulator black screen
0.0 0


I’m trying to debug my game using the Android emulator.

But I’m getting black screen with the error:
" OpenGL error 0x0502 in renderer/CCRenderer.cpp restoreRenderState 188"

Also seeing this error on start:
" E/eglCodecCommon: removeVertexArrayObject: ERROR: cannot delete VAO 0!"

I’ve tried different OpenGL settings but none of them work, some show the black screen right on the start, some show the game and after some time the black screen is shown again.

Any workaround for this?


What is cocos2d version?


The version is the latest 3.16


The problem has been fixed in cocos2d-x-3.17 May.21 2018:
[FIX] Android: Emulator blank screen 0x501 and 0x502 problems
[FIX] Android: Emulator stencil fix


Thanks! Those fixes solved the problem


Please mark my answer as solution.