Hi guys! I’ve got this problem - I’ve written very simple game and it works all good on iOS, but when I compiled it for android it does not launch on simulator and for example physical device Huawei P7 Lite with Android 5. When I tried to launch it on Samsung Grand Prime, S5, few LGs, S7 and Huawei P9 it works all good, but in simulator and few devices it does not.
Compiled for SDK 16 with NDK 14 armeabi-v7a. Cocos2dx straight from github.
This error comes up:
03-29 22:48:55.389 2542-2619/com.skyhorn.simplegame I/OpenGLRenderer: Initialized EGL, version 1.4
03-29 22:48:55.389 2542-2619/com.skyhorn.simplegame D/OpenGLRenderer: Swap behavior 1
03-29 22:48:55.382 2542-2542/com.skyhorn.simplegame W/RenderThread: type=1400 audit(0.0:17): avc: denied { search } for name="graphics" dev="tmpfs" ino=4281 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:graphics_device:s0 tclass=dir permissive=0
--------- beginning of crash
03-29 22:48:55.850 2542-2618/com.skyhorn.simplegame E/AndroidRuntime: FATAL EXCEPTION: GLThread 94
Process: com.skyhorn.simplegame, PID: 2542
java.lang.RuntimeException: createContext failed: EGL_BAD_CONFIG
at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1211)
at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1202)
at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1052)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1412)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1259)