Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I cannot init a new World with box2D on Android

I added the gdx.jar and gdx-backend-android.jar in the Libraries tab. I get java.lang.UnsatisfiedLinkError: newWorld for

gravity = new Vector2(0,10f);        
world = new  World(gravity, false);

All the issues in google source code tracker cannot help me.

like image 777
Christophe Debove Avatar asked Dec 27 '25 21:12

Christophe Debove


1 Answers

You only use the box2d wrapper i assume. In that case you have to load the natives yourself via System.load("gdx").

like image 94
badlogic Avatar answered Dec 30 '25 16:12

badlogic