-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing library librealm-jni.so
#7797
Comments
We are also getting reports of the crash occurring 4,168 times across 276 users in the last 90 days on various devices (Huawei, Samsung, Oppo, Xiaomi, Transmission, Nexus, and possibly others) and various Android versions (7, 8, 9, 10, 11, 12, 13) as reported by Firebase Crashlytics. All of these occurrences are from the users who have sideloaded the app, i.e., installed the app through APK from sources outside Google’s Play Store. I have managed to reproduce a similar crash ( |
@haytham-c01 Did the XAPK file contain the |
@cmelchior Yes, but only in the config/split APKs and not the base APK I installed. |
More importantly, I reproduced a more common version of the crash by using an APK generated by APK extraction apps, namely: The resulting APK was missing the The error I got when installing the extracted APK is: |
Note: I am describing the result of my investigation and manual testing. I haven't tried the solution on our production app and I don't know if we would want to try it. I hope it helps :) SummaryThe problemAPK extraction apps are not handling app bundles, thus, creating incomplete APKs without The SolutionIdeally, these APK extraction apps should either handle app bundles or tell the user that the select app is not supported. A less ideal solution from our side is to either revert to publishing APKs instead of app bundles or disable splits on app bundles:
HOWEVER, in both solutions, we will lose the benefits of app bundles and increase our APK size. More DetailsThe problemI did a quick check on the source code for APK Analyzer, the most downloaded APK extraction app. It seems like it's copying the base APK only and not the split/config APKS, resulting in an APK without the In that app code, there is a reference to Background InfoApps that are installed from the app bundle generate multiple APKs in the path To test both install types, open the "run" dropdown menu, then click on "edit configurations", then select from "deploy": Here is what
|
Unfortunately, this came in today from a Kindle Fire user::
ANDROID_VERSION=11 realm_version = '10.18.0' |
This ticket tracks any issues and developments about the SDK being unable to resolve the native library during the initialization phase.
The issue occurs when an exception is thrown while invoking
Realm.init(context)
with the following stacktrace:There is not a clear cause for it. It might be related to Relinker, or the app distributable not containing the artifacts for the device architecture.
The following issues report this same bug:
Works related to this:
The text was updated successfully, but these errors were encountered: