无法找到 QCARWrapper

发布于 2024-12-28 01:18:25 字数 736 浏览 2 评论 0原文

我在 Unity 中创建了一个 QCAR 项目,我可以从 Unity 在 Android 上成功运行该项目。但是,我在将其导出到 Eclipse android 项目时遇到问题。我已按照此处的说明进行操作,但是当我尝试运行该应用程序,但在 logcat 中出现以下错误

01-19 16:20:42.521: D/dalvikvm(30361): Trying to load lib /data/data/com.my.app/lib/libQCARWrapper.so 0x4824dce8
01-19 16:20:42.521: I/dalvikvm(30361): Unable to dlopen(/data/data/com.my.app/lib/libQCARWrapper.so): Cannot load library: find_library[1188]:  2389 'libQCARWrapper.so' failed to load previously
01-19 16:20:42.521: E/Unity(30361): Unable to find QCARWrapper

缺少的文件位于我的库项目中,但不在我的 Android 项目中。我尝试将其直接放入我的项目和各种构建路径组合中,但没有成功。

I've created a QCAR project in Unity which I can successfully run on Android from Unity. However, I'm encountering a problem exporting it to an Eclipse android project. I have followed the instructions from here but when I try to run the app I get the following error in the logcat

01-19 16:20:42.521: D/dalvikvm(30361): Trying to load lib /data/data/com.my.app/lib/libQCARWrapper.so 0x4824dce8
01-19 16:20:42.521: I/dalvikvm(30361): Unable to dlopen(/data/data/com.my.app/lib/libQCARWrapper.so): Cannot load library: find_library[1188]:  2389 'libQCARWrapper.so' failed to load previously
01-19 16:20:42.521: E/Unity(30361): Unable to find QCARWrapper

The missing file is in my library project but not my Android project. I have tried putting it directly in my project and various build path combinations but with no success.

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

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

发布评论

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

评论(1

野稚 2025-01-04 01:18:25

我在与 Eclipse 集成时遇到了同样的问题,这是由 AndroidManifest.xml 文件冲突引起的,尤其是在您使用 OBB 拆分器/APK 扩展包时。诀窍是

1) 导入Vuforia的Unity包时,对导入的Manifest文件进行备份。
2)将Google OBB Downloader包添加到项目后进行备份。
3) 将这两个文件合并到一个 AndroidManifest.xml 文件中,确保与“UnityPlayerXXXXX.activity”和“QcarUnityPlayerXXXXXX.activity”相关的所有活动都在清单中声明。

瞧!...

I had the same issue when integrating with Eclipse and is caused with a conflicting AndroidManifest.xml file especially if you are using an OBB splitter/APK Expansion pack. The trick is to

1) Take a backup of the Manifest file imported when you import Vuforia's Unity package.
2) Take a backup after the Google OBB Downloader package is added to the project.
3) Merge these both files into one AndroidManifest.xml file ensuring that all activities realted to "UnityPlayerXXXXX.activity" and "QcarUnityPlayerXXXXXX.activity" are declared in the manifest.

and Voila !!!...

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