Log in or register to post comments

Android - DllNotFoundException: QCARWrapper

May 21, 2013 - 11:54am #1

I've been working on an update of an app, which used an old version of Vuforia, which I've had to replace due to Apple not allowing the UDID to be tracked.

After the Vuforia plugin was updated, the Android build stopped working. When run from within Unity (Build and Run) then it worked fine, however, when installed manually from the generated APK (the same one that Build and Run created) then I get the following errors from adb logcat:

I/Unity   (23790): Start
I/Unity   (23790):  
I/Unity   (23790): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)
I/Unity   (23790): 
D/dalvikvm( 1314): GC_EXPLICIT freed 157K, 45% free 8088K/14471K, external 2269K/2739K, paused 120ms
D/dalvikvm(23790): Trying to load lib /data/data/com.virtualmatter.hoptimist/lib/libQCARWrapper.so 0x405130b0
E/Unity   (23790): Unable to find QCARWrapper
D/dalvikvm(23790): Trying to load lib /data/data/com.virtualmatter.hoptimist/lib/libQCARWrapper.so 0x405130b0
E/Unity   (23790): Unable to find QCARWrapper
I/Unity   (23790): DllNotFoundException: QCARWrapper
I/Unity   (23790):   at (wrapper managed-to-native) QCARNativeWrapper:trackerManagerInitTracker (int)
I/Unity   (23790):   at QCARNativeWrapper.TrackerManagerInitTracker (Int32 trackerType) [0x00000] in <filename unknown>:0 
I/Unity   (23790):   at TrackerManagerImpl.InitTracker (Type trackerType) [0x00000] in <filename unknown>:0 
I/Unity   (23790):   at DataSetLoadBehaviour.Awake () [0x00000] in <filename unknown>:0 
I/Unity   (23790):  
I/Unity   (23790): (Filename:  Line: -1)
I/Unity   (23790): 
D/dalvikvm(23790): Trying to load lib /data/data/com.virtualmatter.hoptimist/lib/libQCARWrapper.so 0x405130b0
E/Unity   (23790): Unable to find QCARWrapper
D/dalvikvm(23790): Trying to load lib /data/data/com.virtualmatter.hoptimist/lib/libQCARWrapper.so 0x405130b0
E/Unity   (23790): Unable to find QCARWrapper
I/Unity   (23790): DllNotFoundException: QCARWrapper
I/Unity   (23790):   at (wrapper managed-to-native) QCARNativeWrapper:getInitErrorCode ()
I/Unity   (23790):   at QCARNativeWrapper.GetInitErrorCode () [0x00000] in <filename unknown>:0 
I/Unity   (23790):   at QCARUnityImpl.CheckInitializationError () [0x00000] in <filename unknown>:0 
I/Unity   (23790):   at QCARUnity.CheckInitializationError () [0x00000] in <filename unknown>:0 
I/Unity   (23790):   at DefaultInitializationErrorHandler.Start () [0x00000] in <filename unknown>:0 
I/Unity   (23790):  
I/Unity   (23790): (Filename:  Line: -1)
I/Unity   (23790): 
I/Unity   (23790): QCARWrapper.Start
I/Unity   (23790):  
I/Unity   (23790): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)
I/Unity   (23790): 
I/Unity   (23790): DllNotFoundException: QCARWrapper
I/Unity   (23790):   at (wrapper managed-to-native) QCARNativeWrapper:getInitErrorCode ()
I/Unity   (23790):   at QCARNativeWrapper.GetInitErrorCode () [0x00000] in <filename unknown>:0 
I/Unity   (23790):   at QCARUnityImpl.CheckInitializationError () [0x00000] in <filename unknown>:0 
I/Unity   (23790):   at QCARUnity.CheckInitializationError () [0x00000] in <filename unknown>:0 
I/Unity   (23790):   at QCARBehaviour.Start () [0x00000] in <filename unknown>:0 
I/Unity   (23790):  
I/Unity   (23790): (Filename:  Line: -1)
I/Unity   (23790): 

I have extracted the APK and fond a libQCARWrapper.so inside it, the same size (38KB) as the ones inside the Unity project. Also file does recognise them both as being valid ARM libraries. Also, it does appear to be finding the lib, but unable to load it. What might be causing this?

 

Android - DllNotFoundException: QCARWrapper

November 24, 2014 - 1:52am #5

Hi, 

I'm having the same issue and getting the same errors, has anyone found a fix for this?

Cheers, 

Chris 

 

Android - DllNotFoundException: QCARWrapper

May 22, 2013 - 3:17pm #4

Which plugins does the APK in question use, beside Vuforia?

Also be sure to completelly uninstall the app and all data when testing.

I'm going to look into how the Unity B&R vs ADB install processes are different.

Android - DllNotFoundException: QCARWrapper

May 22, 2013 - 8:55am #3

Thanks for the reply,

I'd managed to miss out a couple of the steps when migrating before, mainly just deleting old plugin assets. This improved the situation marginally. I then got the camera view being displayed.

The app uses the triggers to initiate an additive loading sequence. Again, if I do this with Build and Run, it works fine, however if I build the APK and install it, once the trigger gets recognised by the app, it crashes with the following:

D/dalvikvm(26894): GetMethodID: method not found: Ljava/lang/NullPointerException;.init:()V
E/dalvikvm(26894): Class lookup Ljava/lang/NoSuchMethodError; attempted while exception Ljava/lang/NullPointerException; pending

As I mentioned before, this runs on the iOS build, it used to run on Android and it _does_ work when I do Build and Run.

Another strange thing is, one other issue we had was that the app was crashing when requesting a webview with Prime[31]'s Etcetera plugin, so I (re)added the relevant activitiy to the Android manifest and now the camera no longer activates and gives me the exact same error as before (DllNotFoundException)

Edit: The plot thickens. I tried doing a Build and Run and then copying the APK off the device (from /data/app/) which turned out to be the exact same size as the APK that I mentioned installing manually caused the problem. I even extracted it and diff'd the directories. Everything was identical. I really don't understand how it can be different.

Android - DllNotFoundException: QCARWrapper

May 21, 2013 - 12:00pm #2

Did you follow the migration steps outlined here ? - https://developer.vuforia.com/resources/dev-guide/migrating-your-unity-project

Log in or register to post comments