Android can't load local libcrypto unsatisfied link error

前端 未结 2 1467
小蘑菇
小蘑菇 2021-01-22 09:02

I need to run a newer version of openssl in my app than the one that comes in the OS. I was able to patch and android source to compile a newer version and then extract the shar

2条回答
  •  庸人自扰
    2021-01-22 09:28

    Yes JNI is picking up the system versions. It didn't use your patched versions at all. On standalone JVM you would say -Djava.library.path=/libs/armeabi or modify environment variable LD_LIBRARY_PATH. On Android i guess you can either look up the system property java.library.path and put your libs in some known place (but before the folder where the system versions are) or actually modify the property - prepend the path to your local versions. I do have some experience with Android but not specifically with NDK.

提交回复
热议问题