0

I have a project where it got shared .so lib for 32 bit and 64 bit. When I install the app on 64-bit device the library loaded just fine with the following line System.loadLibrary("myjni"); and in code, I have to call another one .so lib called kit.so and need to pass the path of kit.so to myjni in order to execute functions. Just like below.

public native String load(String kitLibPath, boolean myBool); // load method is in myjni

and then the load method in myjni.so will execute the commands with kit.so lib.

Everything is working just fine with armeabi-v7a libs but when I include 64 bit versions of it, I'm not able to get the lib path.

Here is how it returned the path when I only include v7a 32-bit libs

/data/user/0/com.my.package.name/lib/libkit.so

and the 64 bit lib was supposed to be in

/data/user/0/com.my.package.name/arm64/libkit.so

If I was correct, but that returns as file don't exist

How can I resolve this problem?

Botje
  • 21,384
  • 3
  • 27
  • 38
Nithis Kumar
  • 248
  • 5
  • 20
  • Possible dup of [https://stackoverflow.com/questions/68689208/android-system-app-jni-library-load-path/68713502#68713502] regarding extractNativeLibs=false on newer Androids – Botje Sep 06 '21 at 07:07

0 Answers0