LibGDX and Box2D library depency problems

LibGDX and Box2D library depency problems

Hello,

I'm developing a Intel MOE game based on libGDX (1.9.3) + box2D. We have got an error while it is working on Android. I tried to import the native dependencies for box2D, but it just didn't work. I hope you can help me.

Gradle-Dependencies:

   compile fileTree(dir: 'lib', include: '*.jar')

   compile project(":common")

   compile "com.badlogicgames.gdx:gdx-backend-moe:$gdxVersion"

   natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
   natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-ios"
   natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"

   compile group: 'com.badlogicgames.gdx', name: 'gdx-box2d-platform', version: '1.9.3'

   natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
   natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
   natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
   natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
   natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
   compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
   natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi"
   natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
   natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-arm64-v8a"
   natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
   natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86_64"
   compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
   natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi"
   natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a"
   natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-arm64-v8a"
   natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
   natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86_64"

Stack trace:

art W 13828 415213 /teamcity/workdir/moe_repo_build/moe_repo/art/runtime/native/java_lang_Runtime.cc:65] android_update_LD_LIBRARY_PATH not found; .so dependencies will not work!
art E 13828 415213 /teamcity/workdir/moe_repo_build/moe_repo/art/runtime/java_vm_ext.cc:255] No implementation found for long com.badlogic.gdx.physics.box2d.World.newWorld(float, float, boolean) (tried Java_com_badlogic_gdx_physics_box2d_World_newWorld and Java_com_badlogic_gdx_physics_box2d_World_newWorld__FFZ)
java.lang.UnsatisfiedLinkError: No implementation found for long com.badlogic.gdx.physics.box2d.World.newWorld(float, float, boolean) (tried Java_com_badlogic_gdx_physics_box2d_World_newWorld and Java_com_badlogic_gdx_physics_box2d_World_newWorld__FFZ)
    at com.badlogic.gdx.physics.box2d.World.newWorld(Native Method)
    at com.badlogic.gdx.physics.box2d.World.<init>(World.java:228)
    at com.intel.libgdxmissilecommand.common.utils.WorldUtils.createWorld(WorldUtils.java:27)
    at com.intel.libgdxmissilecommand.common.stages.GameStage.setupWorld(GameStage.java:416)
    at com.intel.libgdxmissilecommand.common.stages.GameStage.<init>(GameStage.java:77)
    at com.intel.libgdxmissilecommand.common.screens.GameScreen.<init>(GameScreen.java:19)
    at com.intel.libgdxmissilecommand.common.screens.MenuScreen$3.touchDown(MenuScreen.java:100)
    at com.badlogic.gdx.scenes.scene2d.InputListener.handle(InputListener.java:56)
    at com.badlogic.gdx.scenes.scene2d.Actor.notify(Actor.java:181)
    at com.badlogic.gdx.scenes.scene2d.Actor.fire(Actor.java:152)
    at com.badlogic.gdx.scenes.scene2d.Stage.touchDown(Stage.java:282)
    at com.badlogic.gdx.backends.iosmoe.IOSInput.processEvents(IOSInput.java:545)
    at com.badlogic.gdx.backends.iosmoe.IOSGraphics.glkViewDrawInRect(IOSGraphics.java:247)
    at com.badlogic.gdx.backends.iosmoe.IOSGLKView.drawRect(IOSGLKView.java:76)
    at ios.uikit.c.UIKit.UIApplicationMain(Native Method)
    at com.intel.libgdxmissilecommand.ios.Main.main(Main.java:53)

Sincerely,
Marius

Zone: 

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.