Unable to find QCARWrapper

心不动则不痛 提交于 2019-12-08 08:14:47

问题


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.


回答1:


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 !!!...



来源:https://stackoverflow.com/questions/8929747/unable-to-find-qcarwrapper

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