Log in or register to post comments

Read/Writing permission issues and "unsupported mime" in Vuforia with Android

September 2, 2017 - 9:07am #1

Hello everyone, ive been trying to get Vuforia to work with Android Studio for last several days. After following the vuforia getting started tutorials word for word, finally got the samples to compile for once. However when I select any of the options in the menu and press "start", rather than opening a camera or whatever its supposed to do, it launches a black screen for a second and goes back to the menu.

 

After a little digging through the logs I found two issues that (in my opinion) could have caused this. First one is that since API 23 onwards, some operations  such as read/write require runtime permissions that this app is not asking for. In that case I would like some guidance on which function calls I can edit to make it work. The error messages that lead me to believe look like this:

" 09-02 20:59:36.370 3657-3657/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@com.vuforia.samples.VuforiaSamples-1@split_lib_slice_5_apk.apk@classes.dex: Permission denied "

 

and 



"09-02 21:02:04.819 1293-1799/? W/ActivityManager: Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=9379, uid=10131 that is not exported from uid 10097"



Another issue that may be causing it is "unsupported mime", here is a typical message.

09-02 20:59:16.610 1910-3392/com.vuforia.samples.VuforiaSamples W/VideoCapabilities: Unsupported mime video/mp4v-esdp

09-02 20:59:16.615 1910-3392/com.vuforia.samples.VuforiaSamples W/AudioCapabilities: Unsupported mime audio/ac3

09-02 20:59:16.616 1910-3392/com.vuforia.samples.VuforiaSamples W/AudioCapabilities: Unsupported mime audio/eac3

09-02 20:59:16.617 1910-3392/com.vuforia.samples.VuforiaSamples W/AudioCapabilities: Unsupported mime audio/eac3-joc

09-02 20:59:16.621 1910-3392/com.vuforia.samples.VuforiaSamples W/VideoCapabilities: Unsupported mime video/mp4v-esdp

 

Id be glad if I could get some help im really short on time. 



Thanks.

Read/Writing permission issues and "unsupported mime" in Vuforia with Android

September 5, 2017 - 11:35am #2


Hello saadjumani,

What permissions do you have set in your AndroidManifest.xml? The 4 you need for Vuforia are:

CAMERA

INTERNET

ACCESS_NETWORK_STATE

READ_EXTERNAL_STORAGE

Can you confirm you have these granted in your manifest?

Thanks,

-Vuforia Support

Log in or register to post comments