I'm currently using a library that I've already compiled into .so
files. I've put the library into jniLibs
and I load it with:
System.loadLibrary("library");
Now, I want to use this library in some of my own native code, so how can I link these .so
files with my own native files from the jni
folder?
This works now in Android Studio. You can use CFlags -I
and ldFlags -L
when building.
Take a look at this good example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With