Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AndEngine error on loading library

I have a problem while running the examples from andengine. The error I'm getting is at this line:

System.loadLibrary( "andenginephysicsbox2dextension" );

Couldn't load andenginephysics2dextension. Find library returned null. I noticed other people kept having this problem but no solution was proposed.

Any help is welcomed! Thanks.

like image 916
Fofole Avatar asked Jan 05 '12 09:01

Fofole


3 Answers

looks like you missed to copy the native libraries. AndEngine is now hosted on github and it is in perfectly active development! ( https://github.com/nicolasgramlich/AndEngine ) more info on what changed in the new GLES2 version here: http://www.andengine.org/forums/announces/andengine-gles2-pre-release-on-december-23rd-t6097.html#p26851

Using AndEngine as a library project is recommended and this will automatically 'copy' the native libraries to your project.

Best Regards, Nicolas

like image 104
Nicolas Gramlich Avatar answered Oct 28 '22 07:10

Nicolas Gramlich


The error you are getting is because you have to build the Box2D extension yourself. I think there is tutorial how to do it. However i stoped there and downloaded the demos from market. Then eventually switched to libGDX.

like image 25
Ludevik Avatar answered Oct 28 '22 05:10

Ludevik


Check out this tutorial: http://www.youtube.com/playlist?list=PL6131C7A9DDCF959A

The new way of using andEngine is to include the git repos as libraries (without making any jars)

like image 2
Chris Antonick Avatar answered Oct 28 '22 06:10

Chris Antonick