Krøllebølle

My animations works just fine in my desktop project, but when I try to build it for my Android tablet it fails as it cannot find the referenced libraries. Stack trace:
03-04 20:14:19.105: E/AndroidRuntime(19344): FATAL EXCEPTION: GLThread 887
03-04 20:14:19.105: E/AndroidRuntime(19344): java.lang.NoClassDefFoundError: com.esotericsoftware.spine.SkeletonJson
03-04 20:14:19.105: E/AndroidRuntime(19344): at com.games.testgame.accessories.Figure2Animations.<init>(Figure2Animations.java:25)
03-04 20:14:19.105: E/AndroidRuntime(19344): at com.games.testgame.accessories.AnimationsContainer.<init>(AnimationsContainer.java:12)
03-04 20:14:19.105: E/AndroidRuntime(19344): at com.games.testgame.accessories.AssetsContainer.<init>(AssetsContainer.java:89)
03-04 20:14:19.105: E/AndroidRuntime(19344): at com.games.testgame.game.TestGame.create(TestGame.java:21)
03-04 20:14:19.105: E/AndroidRuntime(19344): at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:292)
03-04 20:14:19.105: E/AndroidRuntime(19344): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1455)
03-04 20:14:19.105: E/AndroidRuntime(19344): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)
It's just a reference issue, but I have tried putting the Spine jar almost everywhere with no success, both in the main project and the Android project. What to do?

Edit: I'm using Eclipse.
Krøllebølle

Kickstarter Backer
  • Messaggi: 36

Nate

For Android, JARs need to be on the Android project and checked on the Export tab.
Avatar utente
Nate

Nate
  • Messaggi: 12133

Krøllebølle

Thanks, works fine! For any others wandering into this thread; remember to remove your Android dependencies on the Spine jar in the main project IF you have done that. Caused some errors like this, since it was added several times.
java.lang.IllegalArgumentException: already added: Lcom/esotericsoftware/spine/Bone;
Krøllebølle

Kickstarter Backer
  • Messaggi: 36


Torna a Editor