0

I want to use .so lib file of another project into my own project. There i am facing some problems i have put the .so file in JNILibs folder. but the native methods in the .so file did not successfully loaded and give error that the Can not find the corresponding JNI Function. so how i can solve this problem i have checked different solutions like Call shared library (.so) methods within Android Studios C files How do I package .so files into my .aar archive?

but they did not solve my problem. i have no .cpp file nor .h file. I have only .so file so how i can solve this problem. thanks in advance.

Mudassir Khan
  • 1,714
  • 1
  • 20
  • 25
  • Talk to the developer of the other project. After all, this project must be open source, as only developers with no ethics would pirate a `.so` from some other app. The developers of the other project can help you navigate the open source code to find the relevant material, such as their Java class that has their JNI bridge code. – CommonsWare Oct 31 '17 at 10:44
  • ok but i have problem including my.so file in .mk file and gradle – Mudassir Khan Oct 31 '17 at 11:38
  • please check https://stackoverflow.com/a/44422873/192373 – Alex Cohn Nov 08 '17 at 22:07

0 Answers0