By monkeyhanny
on Sat, 10/07/2017 - 13:32
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,
Hi,
Did you add Vuforia.jar and iso files in libs folder
Hi Vinny92,
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'
Hello monkeyhanny,
Hello monkeyhanny,
Hi Strasza,
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.