org.andengine.opengl.shader.exception.ShaderProgramCompileException

Reason: ERROR: 0:1: '' : Version number not supported by GL2 09-13 22:20:43.195: E/AndroidRuntime(1509): Source: 09-13 22:20:43.195: E/AndroidRuntime(1509): ########################## 09-13 22:20:43.195: E/AndroidRuntime(1509): uniform mat4 u_modelViewProjectionMatrix; 09-13 22:20:43.195: E/AndroidRuntime(1509): attribute vec4 a_position; 09-13 22:20:43.195: E/AndroidRuntime(1509): attribute vec2 a_textureCoordinates; 09-13 22:20:43.195: E/AndroidRuntime(1509): varying vec2 v_textureCoordinates; 09-13 22:20:43.195: E/AndroidRuntime(1509): void main() { 09-13 22:20:43.195: E/AndroidRuntime(1509): v_textureCoordinates = a_textureCoordinates; 09-13 22:20:43.195: E/AndroidRuntime(1509): gl_Position = u_modelViewProjectionMatrix * a_position; 09-13 22:20:43.195: E/AndroidRuntime(1509): } 09-13 22:20:43.195: E/AndroidRuntime(1509): ##########################

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • Stack trace

    • org.andengine.opengl.shader.exception.ShaderProgramCompileException: Reason: ERROR: 0:1: '' : Version number not supported by GL2 09-13 22:20:43.195: E/AndroidRuntime(1509): Source: 09-13 22:20:43.195: E/AndroidRuntime(1509): ########################## 09-13 22:20:43.195: E/AndroidRuntime(1509): uniform mat4 u_modelViewProjectionMatrix; 09-13 22:20:43.195: E/AndroidRuntime(1509): attribute vec4 a_position; 09-13 22:20:43.195: E/AndroidRuntime(1509): attribute vec2 a_textureCoordinates; 09-13 22:20:43.195: E/AndroidRuntime(1509): varying vec2 v_textureCoordinates; 09-13 22:20:43.195: E/AndroidRuntime(1509): void main() { 09-13 22:20:43.195: E/AndroidRuntime(1509): v_textureCoordinates = a_textureCoordinates; 09-13 22:20:43.195: E/AndroidRuntime(1509): gl_Position = u_modelViewProjectionMatrix * a_position; 09-13 22:20:43.195: E/AndroidRuntime(1509): } 09-13 22:20:43.195: E/AndroidRuntime(1509): ########################## at org.andengine.opengl.shader.ShaderProgram.compileShader(ShaderProgram.java:187) at org.andengine.opengl.shader.ShaderProgram.compile(ShaderProgram.java:143) at org.andengine.opengl.shader.ShaderProgram.bind(ShaderProgram.java:122) at org.andengine.opengl.shader.PositionTextureCoordinatesShaderProgram.bind(PositionTextureCoordinatesShaderProgram.java:86) at org.andengine.opengl.vbo.VertexBufferObject.bind(VertexBufferObject.java:162) at org.andengine.opengl.texture.TextureWarmUpVertexBufferObject.warmup(TextureWarmUpVertexBufferObject.java:97) at org.andengine.opengl.texture.TextureManager.updateTextures(TextureManager.java:257) at org.andengine.engine.Engine.onDrawFrame(Engine.java:613) at org.andengine.opengl.view.EngineRenderer.onDrawFrame(EngineRenderer.java:105) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.