By tschulz
on Fri, 02/05/2016 - 07:35
Description of the issue:
Only on Android M (Android 6) on my Nexus 5 the vuforia initializing failed. On many other devices it works pretty good from Android 4 to Android 5. Datasetcopier script write datasets on device from obb. No error in console about that. But files are missing on Android 6 device.
Exact Device Model number:
LG Nexus 5
Installed OS version:
Android 6
Vuforia SDK version
Vuforia SDK 5.0.6
Platform
Android with Unity 5.2.1p3
Error Logs:
10-19 12:39:55.895 3576-3611/de.packagename D/QCAR﹕ Setting Unity version 5.2.110-19 12:39:55.927 3576-3611/de.packagename E/Unity﹕ Vuforia initialization failed UnityEngine.Debug:Internal_Log(Int32, String, Object) UnityEngine.Debug:LogError(Object) Vuforia.VuforiaAbstractBehaviour:Start() (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)10-19 12:39:55.931 3576-3611/de.packagename E/Unity﹕ Vuforia initialization failed: UnityEngine.Debug:Internal_Log(Int32, String, Object) UnityEngine.Debug:LogError(Object) Vuforia.DefaultInitializationErrorHandler:SetErrorCode(InitError) (at /Users/tobias/Documents/Projekte/ar-app/unity3d/App/Assets/Vuforia/Scripts/DefaultInitializationErrorHandler.cs:82) Vuforia.DefaultInitializationErrorHandler:OnVuforiaInitializationError(InitError) (at /Users/tobias/Documents/Projekte/ar-app/unity3d/App/Assets/Vuforia/Scripts/DefaultInitializationErrorHandler.cs:156) Vuforia.VuforiaAbstractBehaviour:Start() (Filename: /Users/tobias/Documents/Projekte/ar-app/unity3d/App/Assets/Vuforia/Scripts/DefaultInitializationErrorHandler.cs Line: 82) ......... I´m using a datasetcopier script to get datasets out of OBB file. It writes the files to: /data/user/0/de.packagename/files/mydataset.dat but i can´t see the dataset files on /sdcard/Android/data/de.packagename/files/*Could this be a Android M (6) permission error? I can´t see the files but vuforia are able to load the dataset:.....10-19 12:39:55.936 3576-3611/de.packagename I/Unity﹕ Trackable mermaid-9-gespiegelt lost10-19 12:39:55.940 3576-3611/de.packagename I/Unity﹕ Trackable mermaid-1-gespiegelt lost.....Device orientation:
Landscape. We never use Portrait mode.
Back/Front Camera:
We only use Back camera.
Camera Mode:
MODE_OPTIMIZE_SPEED.
Concurrent camera access:
Camera works good.
Android M Vuforia Initializing failed
Same problem here, after I updated my phone it's just fail to work. When I install the same APK on the another devives, it's okay. Any idea ?
Android M Vuforia Initializing failed
What is the targetSDK and minSDK in your Android manifest ?
Android M Vuforia Initializing failed
I made this project clearly in Unity, the minimum API level (set by Unity) is 4.2
/plungins/Android/AndroidManifest.xml hasn't set anything like targetSDK or minSDK
Android M Vuforia Initializing failed
Could you check the AndroidManifest xml in the YOUR_UNITY_PROJECT / Temp / StagingArea folder ?
(note: the Temp/Staging Area folder is created by Unity when geenrating your APK; you need to leave Unity Editor open, cause if you close it, you'll lose that folder)
Android M Vuforia Initializing failed
Oh, I 've learned something new today :) Thanks, this is what I found
Android M Vuforia Initializing failed
OK, so, basically here Unity is automatically injecting the targetSDKversion into the generated AndroidManifest.xml, setting it to API level "23" (which means Android 6.0 API).
Android M Vuforia Initializing failed
It works ! Thank you very much