justin avatar image
justin posted

How do I enable CheckJNI in my app?   


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


10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.



rossbria contributed to this article Justin@Amazon contributed to this article