Kotlin & FFM on Android

Hi, I am looking for a replacement for JNI to call native C++ functions on Android app that’s written in Jetpack Compose + Kotlin.

Is it possible to use FFM to call the lib directly, as a full replacement to JNI?

Have you tried writing the JNI classes in Java and just use them from Kotlin?

Yes I have experience with JNI, but if there are better options available on Kotlin I’d prefer to use those. Is JNI still the best option for calling native code from Kotlin?

Looks like FFM isn’t available on Android since we’re still using Java 17 on latest SDK.