Jbullet on Android - Runtime crash

I have added

jME3-bullet.jar



The project compiles but at runtime I get the following…



06-29 17:49:17.828: ERROR/AndroidHarness(13422): java.lang.UnsatisfiedLinkError: createPhysicsSpace

06-29 17:49:17.828: ERROR/AndroidHarness(13422): Exception thrown in Thread[GLThread 8,5,main]: com.jme3.bullet.PhysicsSpace.createPhysicsSpace(-2) com.jme3.bullet.PhysicsSpace.create(-1) com.jme3.bullet.PhysicsSpace.(-1) com.jme3.bullet.BulletAppState.startPhysics(-1) com.jme3.bullet.BulletAppState.stateAttached(-1) com.jme3.app.state.AppStateManager.attach(79) com.jmonkeytesting.Test4.simpleInitApp(66) com.jme3.app.SimpleApplication.initialize(223) com.jme3.system.android.OGLESContext.initInThread(221) com.jme3.system.android.OGLESContext.onSurfaceCreated(351) android.opengl.GLSurfaceView$GLThread.guardedRun(1317) android.opengl.GLSurfaceView$GLThread.run(1116)

jME3-bullet.jar uses the native bullet library, the native bullet binary for android does not exist yet.

jBullet apparently does not run very well on android, you can however start coding and trying things by importing jME3-jbullet.jar instead.

thanks @normen

Got it to compile and run with the following libraries

jMonkeyEngine3.jar - from optandroid

And the following from lib

jME3-jbullet.jar

stack-alloc.jar

vecmatch.jar

jbullet.jar

1 Like

I see what you mean the performance is terrible … approaches 4 FPS maximum…