Apr 22

1. Build the project, e.g. gradlew build
2. Go to the directory you want to place the headers (e.g. src/main), and execute:

javah -d jni -classpath ~/Library/Android/sdk/platforms/android-22/android.jar:../../build/intermediates/classes/debug {fully.qualified.class.name}

This will place the auto-generated headers in the src/main/jni directory. Change the platform version in front of android.jar as appropriate.

Leave a Reply

preload preload preload