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): ##########################

Game Development | user1638668 | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Version number not supported by gl2 in andengine

    Game Development | 4 years ago | user1638668
    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): ##########################

    Root Cause Analysis

    1. 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()
    2. org.andengine.opengl
      TextureManager.updateTextures
      1. org.andengine.opengl.shader.ShaderProgram.compileShader(ShaderProgram.java:187)
      2. org.andengine.opengl.shader.ShaderProgram.compile(ShaderProgram.java:143)
      3. org.andengine.opengl.shader.ShaderProgram.bind(ShaderProgram.java:122)
      4. org.andengine.opengl.shader.PositionTextureCoordinatesShaderProgram.bind(PositionTextureCoordinatesShaderProgram.java:86)
      5. org.andengine.opengl.vbo.VertexBufferObject.bind(VertexBufferObject.java:162)
      6. org.andengine.opengl.texture.TextureWarmUpVertexBufferObject.warmup(TextureWarmUpVertexBufferObject.java:97)
      7. org.andengine.opengl.texture.TextureManager.updateTextures(TextureManager.java:257)
      7 frames
    3. org.andengine.engine
      Engine.onDrawFrame
      1. org.andengine.engine.Engine.onDrawFrame(Engine.java:613)
      1 frame
    4. org.andengine.opengl
      EngineRenderer.onDrawFrame
      1. org.andengine.opengl.view.EngineRenderer.onDrawFrame(EngineRenderer.java:105)
      1 frame
    5. Android Platform
      GLSurfaceView$GLThread.run
      1. android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462)
      2. android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)
      2 frames