<How to use a cmake-built C library in Android Stu...
# stackoverflow
r
How to use a cmake-built C library in Android Studio in Kotlin? I am trying to use a C library that is built using cmake in an Android Studio project that uses Kotlin. So far I was able to install the NDK and cmake in Android Studio, include the C library's CMakeLists.txt file in the project and make the project compile, so that I see the .so file in it. BUT I have no idea how to call the C library functions from Kotlin. Should the C library header file include jni.h ? If so, where do I find it? What should the signature of the library API functions be,...