Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Using javah to generate .h files for Kotlin
# Assuming JNI function calls are in MainActivity.companion
STUDIO=/opt/android-studio
PACKAGE=my.package
$STUDIO/jre/bin/javah -jni -cp "$STUDIO/lib/kotlin-runtime.jar:build/tmp/kotlin-classes/debug" $PACKAGE.MainActivity.Companion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment