Home > Mobile >  Dynamic loading.so file
Dynamic loading.so file

Time:09-18

Required to be dynamic load so file within the Android
Is due to the use of the three party jar, call the so file in a jar, he used approach is System. LoadLibrary (" MSC ");
My plan is, so the default file is not in the lib, need to download from the Internet, and then load the
Finally found System. The load so file (download) there is no problem, but System. LoadLibrary (" MSC ") there is an error when
Java. Lang. UnsatisfiedLinkError: dalvik. System. PathClassLoader [DexPathList [[zip file "/system/framework/org. Apache. HTTP. Legacy. The boot. The jar", zip file "/data/app/com. Ise. Myapplication - SqpBZp9IeaG1UnwZJKjjyQ==/base. The apk"], nativeLibraryDirectories=[/data/user/0/com. Ise. Myapplication/files/armeabi - v7a,/data/app/com. Ise. Myapplication - SqpBZp9IeaG1UnwZJKjjyQ==/lib/arm,/system/lib]]] couldn 't find "libmsc. So
"
Download the so file and the inside of the jar is a.so file, in theory there won't be problem

Could you tell me how to handle this situation?

CodePudding user response:

Need the load is the absolute path and the loadlibrary documentation required under the library path

CodePudding user response:

reference 1st floor BDMH response:
load needs is an absolute path, while the loadlibrary documentation required under the library path

This I know, my operation is to download the so file copy to jniLibs, then through this modify, theoretically is loading the so file?
I go to call in through the load and loadLibrary, theoretically should be?
  • Related