AndEngine 加载库时出错
我在运行 andengine 的示例时遇到问题。我收到的错误是在这一行:
System.loadLibrary( "andenginephysicsbox2dextension" );
无法加载 andenginephysicals2dextension。查找库返回 null。我注意到其他人一直遇到这个问题,但没有提出解决方案。
欢迎任何帮助!谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看起来您错过了复制本机库。 AndEngine 现在托管在 github 上,并且正在积极开发中! ( https://github.com/nicolasgramlich/AndEngine ) 有关新 GLES2 版本中更改内容的更多信息这里:http://www.andengine.org/forums/announces/andengine-gles2-pre-release-on-december-23rd-t6097.html#p26851
使用 AndEngine 作为库项目是建议,这会自动将本机库“复制”到您的项目中。
此致,
尼古拉斯
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
您收到的错误是因为您必须自己构建 Box2D 扩展。我认为有教程如何做到这一点。不过我停在那里并从市场下载了演示。然后最终切换到libGDX。
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.
查看本教程:http://www.youtube.com/playlist?list=PL6131C7A9DDCF959A
使用 andEngine 的新方法是将 git 存储库作为库包含在内(不制作任何 jar)
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)