AndEngine error on loading library

烈酒焚心 提交于 2019-12-01 18:34:44

问题


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.


回答1:


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




回答2:


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.




回答3:


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)



来源:https://stackoverflow.com/questions/8740428/andengine-error-on-loading-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!