Android 5.0+ uses a different virtual machine (previously Dalvik, and now ART). This new VM is much more strict with JNI code. One of the check that is made now is that you are not allowed to call native code from within an Exception.
You can find more details at http://developer.android.com/training/articles/perf-jni.html#exceptions . If you are not the author of the native library, the author needs to correct it. Meanwhile, it may be possible for you to avoid the call to the native calls by avoiding the exceptions from Java, but if the exception occurs in a library you do not own, it may as well not be possible...
You can find more details at http://developer.android.com/training/articles/perf-jni.html#exceptions . If you are not the author of the native library, the author needs to correct it. Meanwhile, it may be possible for you to avoid the call to the native calls by avoiding the exceptions from Java, but if the exception occurs in a library you do not own, it may as well not be possible...