"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

"Failed to initialize Vuforia" Error on multiple versions of Android device

Hi,

 

I just got started on native Android development on Android Studio with Vuforia Android SDK. However, both Android sample apps (VuforiaSamples-6-5-19 and Books-6-5-19) encounter "Failed to initialize Vuforia" error. I've tried changing the targetSdkVersion to targetSdkVersion = 24  in build.gradle and Manifest.xml, but to no avail. 

Besides, I've also manually granted the permission to camera access on the device. 

So far I have tested with Android 7.0, 6.0, and 5.1 with the exact same error. 

 

Any help would be very much appreciated.

 

Thanks in advance!

Hi,

 

Did you add Vuforia.jar and iso files in libs folder

monkeyhanny

Sun, 10/08/2017 - 14:52

Hi Vinny92,

 

I have define the Vuforia SDK folder in build.gradle(Module:app) as def VUFORIA_SDK_DIR = 'C:\\(somepath)\\vuforia-sdk-android-6-5-19'

monkeyhanny

Thu, 10/12/2017 - 03:51

Hi Strasza,

 

Thank you so much. 

I wasn't aware that the license key was missing in the project. The sample app is working now.