我无法运行 WiEngine 骨架项目

发布于 2024-12-02 10:18:24 字数 725 浏览 1 评论 0原文

所以我试图将一些 cocos2d iOS 应用程序移植到 Android 上,看起来 WiEngine 是 cocos2d 到 Android 上功能最齐全的移植( http://www.wiyun.com/web/wiengine ),但是我在运行骨架项目时遇到问题。我遇到的最新问题是我在 ADB 中收到“Exception Ljava/lang/UnsatisfiedLinkError;在初始化 Lcom/wiyun/engine/sculpture/Skeleton 时抛出”错误。我正在尝试在模拟器中运行它,这也可能是一个问题。我有点陷入困境,因为我需要看看我是否可以让某些东西发挥作用(粒子效果等),然后才能证明购买硬件的合理性。

最初,我尝试将 Skeleton 项目导入到 Eclipse 中,但遇到了太多错误,因此我创建了一个与骨架项目具有相同包名的空白 Android 项目,并通过 Properties>libraries>add external Jars

the project 将库添加到构建路径中编译,但一旦尝试初始化骨架类,它就会崩溃,这里是控制台内容:

http://pastebin.com/XAc0XYiA

感谢对此的任何帮助。

谢谢,

尼克

So I'm trying to port some cocos2d iOS apps over to Android and it looks like WiEngine is the most fully featured port of cocos2d to android ( http://www.wiyun.com/web/wiengine ), however I'm having issues getting the skeleton project to run. The latest problem I'm running into is I get a "Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/wiyun/engine/skeleton/Skeleton" error in the ADB. I'm trying to run it in the emulator which also may be an issue. I'm kind of stuck because i need to see if I can get certain things to work (particle effects etc) before i can justify a hardware purchase.

Originally I tried to import the Skeleton project into eclipse but ran into too many errors so i created a blank android project with the same package name as the skeleton project and added the libraries to the build path through properties>libraries>add external Jars

the project compiles but it crashes as soon as it tries to initialize the Skeleton class here is the console stuff:

http://pastebin.com/XAc0XYiA

Appreciate any help on this.

Thanks,

Nick

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

软甜啾 2024-12-09 10:18:24

您必须将 JNI 可访问的预编译库包含到您的项目中。您可以在 SDK 存档中找到它们。

在此处输入图像描述

You have to include JNI accessible precompiled libraries to you project. You can find them on the SDK archive.

enter image description here

小瓶盖 2024-12-09 10:18:24

为了运行你的 WiEngine 项目,你必须添加 WiEngine 库,当你从 Github 下载它时就可以使用它。

https://github.com/stubma/WiEngine

您可以添加库:
右键单击您的项目->属性->Android->库->添加WiEngine

For running your WiEngine Projects you have to add the WiEngine Library which is available when you download it from Github.

https://github.com/stubma/WiEngine

You can add library:
Right click on your Project-> Properties->Android->Library->Add WiEngine

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文