"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Issues with permissions (Android Java)

Hi,

I've been having issues trying to get the most basic part of the SDK working.

I'm running on an android 5.1.1 device and the basic samples load fine, however when i try to initalize the SDK with

Vuforia.init()

(after calling Vuforia.setInitParameters(Activity, int, string) with the correct flags and test license key) it fails with error code -1 (INIT_ERROR), and I get this line in the logcat:

E/AR: Error - failed to assert required Android permissions. Failed to initialize Vuforia SDK. All required Android permissions must be included for the SDK to work.

For reference, this is the relevant part of my manifest:

<uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.INERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<uses-feature android:glEsVersion="0x00020000"  android:required="true"/> <uses-feature android:name="android.hardware.camera"  android:required="true"/>

Any ideas?

Thanks in advance,

John

 

P.S.: the sample application compiles fine and at least starts the camera, so I don't think it's a device problem.

Hi,

Vuforia only initializes the camera, permissions need to be handled at app level. Could you please check our sample app for android and see how we handle the permissions?