Skip to content
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

MissingLibraryException librealm-jni.so on Android 4.x Realm 5.15.1 #6635

Closed
hzy00 opened this issue Oct 11, 2019 · 3 comments
Closed

MissingLibraryException librealm-jni.so on Android 4.x Realm 5.15.1 #6635

hzy00 opened this issue Oct 11, 2019 · 3 comments

Comments

@hzy00
Copy link

hzy00 commented Oct 11, 2019

Actual Results

Appliction crash while init realm

Caused by com.getkeepsafe.relinker.MissingLibraryException
librealm-jni.so
com.getkeepsafe.relinker.ApkLibraryInstaller.installLibrary$757ca6fb (ApkLibraryInstaller.java:123)
com.getkeepsafe.relinker.ReLinkerInstance.loadLibraryInternal (ReLinkerInstance.java:180)
com.getkeepsafe.relinker.ReLinkerInstance.loadLibrary$11a583b2 (ReLinkerInstance.java:136)
com.getkeepsafe.relinker.ReLinker.loadLibrary (ReLinker.java:70)
com.getkeepsafe.relinker.ReLinker.loadLibrary (ReLinker.java:57)
io.realm.internal.RealmCore.loadLibrary (RealmCore.java:60)
io.realm.Realm.initializeRealm (Realm.java:322)
io.realm.Realm.init (Realm.java:265)

Version of Realm and tooling

I doesn't use app bundle. And i'm sure that the .so file is in the package.
Realm version(s): realm java 5.15.1

Realm Sync feature enabled: Yes

Android Studio version: 3.5

Android Build Tools version: 3.3.1

Gradle version: 4.10.1

Which Android version and device(s):
image
image

@Zhuinden
Copy link
Contributor

Do you have any other native libraries that could be 32-bit?

@hzy00
Copy link
Author

hzy00 commented Oct 18, 2019

Yeah, I have some other native library. But I've used 'Android splits' tenc. The app would be splitted into multiple package to support 32-bit or 64-bit. So, I don't think it's the key point.

@cmelchior
Copy link
Contributor

Actually it might. If people are side-loading apps through other means than the app store there is a fairly high chance they are loading the architecture for their device which will result in crashes like this.

Unfortunately, there isn't much we can do about this, except trying to come up with a better error message (which wouldn't help end users though).

Unless you reproduce this issue I'll assume this is the root cause and close the issue, but feel free to re-open if you have more information about it.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants