Home > Mobile >  System. LoadLibrary can be dynamically loaded so file?
System. LoadLibrary can be dynamically loaded so file?

Time:09-17

System. LoadLibrary can be dynamically loaded so file?
Because dead inside the jar of the third party System. LoadLibrary (" XXX "), but I don't want to so file into the apk, hope can download after heavy network load,
How to implement this need??
New to the Android soon, under the guidance of experts, please

CodePudding user response:

You downloaded to the specified location, with the load is not to go, how have to seriously??

CodePudding user response:

https://blog.csdn.net/axi295309066/article/details/52231181
Take a look at this help

CodePudding user response:

Online to find such a paragraph
System. LoadLibrary (String soName), this method will only be loaded pack so in the apk file, and the parameters have to be so library file name, does not contain the prefix lib, does not include the suffix. So, such as ijkffmpeg, loading error will be thrown UnsatisfiedLinkError,

CodePudding user response:

reference 1st floor BDMH response:
you downloaded to the specified location, with the load is not to go, how to have to seriously?

Because of using third-party jar, he use loadLibrary, inside this I don't change again

CodePudding user response:

Mgslovedreamsgogo
reference 4 floor response:
Quote: refer to 1st floor BDMH response:

You downloaded to the specified location, with the load is not to go, how to have to seriously?

Because of using third-party jar, he use loadLibrary, inside this I changed not

Excuse me what method? Quite so third-party jar to use loadLibrary, inside the jar and I can't move, but I want to dynamic loading.so file

CodePudding user response:

Line is certainly done, aren't tinker support replacement so, can look at how to use more, principle of the new you don't go to see

CodePudding user response:

Download the jar source code, to change
  • Related