KeepSafe / ReLinker

A robust native library loader for Android.
Apache License 2.0
3.22k stars 371 forks source link

MissingLibraryException on user's device, happen quite alot #88

Open sonphan12 opened 3 years ago

sonphan12 commented 3 years ago

Could not find 'libvrender-jni.so'. Looked for: [x86, armeabi-v7a, armeabi], but only found: []. com.getkeepsafe.relinker.ApkLibraryInstaller.installLibrary (ApkLibraryInstaller.java:173) com.getkeepsafe.relinker.ReLinkerInstance.loadLibraryInternal (ReLinkerInstance.java:180) com.getkeepsafe.relinker.ReLinkerInstance.loadLibrary (ReLinkerInstance.java:136) com.getkeepsafe.relinker.ReLinker.loadLibrary (ReLinker.java:70) com.getkeepsafe.relinker.ReLinker.loadLibrary (ReLinker.java:51)

On my test device, it doesn't crash, even when I modify my code to force loading lib from the APK. The above crash log is what I received in my Crashlytics system, after only one night it has occurred more than 500 times. This is so unusual.

One small note is in my project, I have separated code into modules. --- app-module +--- native-module

Whereas the native module contains C++ code and will be built by cmake. Also ReLinker.loadLibrary will be called inside native-module with appContext passed from app-module. I don't know if this is the cause of my problem.

It happens mostly on Android 7, but other versions as well. ReLinker version 1.4.3 image