Log in or register to post comments

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

October 7, 2017 - 6:32am #1

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!

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

October 11, 2017 - 8:51pm #5

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. 

 

 

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

October 9, 2017 - 9:18am #4

Hello monkeyhanny,

Have you added a Vuforia license to your project? If you look in the file SampleApplicationSession.java found in the sample apps, you'll see the following function called: Vuforia.setInitParameters(). The last parameter in this function needs to be a license key for Vuforia to initialize properly.

Thanks,

-Vuforia Support

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

October 8, 2017 - 7:52am #3

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'

and Vuforia.jar file is already placed under the path vuforia-sdk-android-6-5-19\build\java\vuforia\Vuforia.jar, and a libVuforia.so file under both vuforia-sdk-android-6-5-19\build\lib\armeabi-v7a folder and vuforia-sdk-android-6-5-19\build\lib\arm64-v8a folder. 

The sample project can be compiled without any error as well. 

 

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

October 8, 2017 - 6:21am #2

Hi,

 

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

Log in or register to post comments