CheckJNI and Android Lollipop: With the introduction of AndroidRunTime, otherwise known as ART, as the default runtime in Android, there have been several changes in the Java Native Interface (JNI). Specifically, ART is stricter regarding JNI calls, and does not support CallObjectMethod to directly call a method that returns void. Instead, you must use CallVoidMethod. To prevent these issues in your app, you can enable CheckJNI by using adb shell setprop debug.checkjni 1.
Keywords: Lollipop, CheckJNI, Java, ART