By pepemarriot
on Mon, 03/14/2016 - 18:28
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
The same error message is
The same error message is being thrown in my code during Vuforia init. Were you able to resolve this problem?
Hey, we figured out what the
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.
p1000 Thanks its the
p1000 Thanks its the versionName which was causing the issue