Log in or register to post comments

Vuforia Init: JNI DETECTED ERROR IN APPLICATION

March 14, 2016 - 11:28am #1

Hi there! I've managed to configure and compile my project using NDK with Vuforia as a library. When I run it in a real device (Android 5.1), I'm getting the following error:

- Native library libVuforia.so loaded

- Vuforia has been initialized successfully

- Vuforia SDK version 5.5.9

- JNI DETECTED ERROR IN APPLICATION: GetStringUTFChars received null jstring in call to GetStringUTFChars from int com.vuforia.VuforiaBase.progressiveInit()

 
This is an execution error, but it's only happening when I compile and run the app using Android Studio (with experimental ndk support in it). When I use Eclipse (with Android.mk and Application.mk), and compile from the command line (with ndk-build) I'm not getting any error and the app works as expected.
 
The reason why I'm trying to migrate to Android Studio is basically because debugging is really easy for c++ code.
 
Any idea of what is happening here? I've read something related to checkjni and its usage in 5.0+ devices (as it uses ART instead of Dalvik as VM).
 
 
Thanks
 

Vuforia Init: JNI DETECTED ERROR IN APPLICATION

April 20, 2017 - 9:10am #5

p1000 Thanks its the versionName which was causing the issue

Vuforia Init: JNI DETECTED ERROR IN APPLICATION

October 14, 2016 - 10:02am #4

Hey, we figured out what the problem was. This error occurs if you do not set a versionName on your Android manifest. That is totally crazy by the way, and Vuforia should not crash when you leave it out.

Vuforia Init: JNI DETECTED ERROR IN APPLICATION

October 13, 2016 - 1:29pm #3

The same error message is being thrown in my code during Vuforia init. Were you able to resolve this problem?

Vuforia Init: JNI DETECTED ERROR IN APPLICATION

March 14, 2016 - 1:27pm #2
Log in or register to post comments