error - FATAL EXCEPTION: GLThread 87

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • game2d
    New Member
    • Apr 2013
    • 59

    error - FATAL EXCEPTION: GLThread 87

    I am using libGDX. my core, and desktop project work fine but when i run android project it give me errors. any idea what is this error and how to fix it?


    Code:
    01-07 12:59:17.348: E/AndroidRuntime(911): FATAL EXCEPTION: GLThread 87
    01-07 12:59:17.348: E/AndroidRuntime(911): java.lang.VerifyError: com/mine/Entity/Player
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.GameStates.S3_PlayState.init(S3_PlayState.java:60)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.GameStates.GameState.<init>(GameState.java:10)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.GameStates.S3_PlayState.<init>(S3_PlayState.java:45)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.GameStates.GameStateManager.loadState(GameStateManager.java:37)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.GameStates.GameStateManager.<init>(GameStateManager.java:22)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.mine.asteroid.MyGdxGame.create(MyGdxGame.java:54)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:334)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1505)
    01-07 12:59:17.348: E/AndroidRuntime(911): 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)



    s3_PlayState.cl ass - line 60
    Code:
    playerBulletsObj = new ArrayList<PlayerBullets>(); //line 59
    playerObj = new Player(playerBulletsObj); //line 60
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    That kind of error could mean that the Android environment is running with a different version of some library than the desktop version. That way the method signature of some method doesn't quite fit; which one we're talking about however I don't know. Are you using the same Version of libGDX for desktop and android? Which java compile level are you using to compile the project?

    Comment

    Working...