-
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
Could not find 'librealm-jni.so'. Looked for: [x86], but only found: []. #6812
Comments
This looks a bit weird. Nexus 4 is not a x86 device. Did this error message come from running on the actual device? I have seen that error message a few times before, but only when running apps on the emulator from inside Android Studio. In that case it is important that the ABI matches exactly the ABI of the device. |
Yes, it is coming from an actual device. At least no emulator from my side. Brand: LGE Another device is the Galaxy J2 Core.
Brand: samsung |
It is a bit unclear what the issue is and without access to the APK itself, it might be hard to find out. What the error says though is that the APK doesn't contain any native code for some reason. We have seen various reports of this kind from people using App Bundle, so far no conclusive root cause has been found. |
I have the same issue with LGE. so a user cannot use the app because of Brand: LGE |
What we know so far:
We will keep this issue open in order to get more feedback. |
I'm also getting this error recently from devices running android 8.1.0. Motorola One Vision (rooted) and Nexus 5X Nexus 5X android 8.1.0. Motorola One Vision (rooted) android 8.1.0. This issue has 23 crash events affecting 3 users. I have other native libraries in my app but I didn’t see any errors related to those libs, except the following crash that happened a month ago,
Can this happen if someone is trying to modify the apk? |
Hi @SujithManjavana. If somebody repacks the apk it could be an issue, so anything like that would be a possibility and there is even more things that could be off with rooted devices (repackaging on installation ect.). It if get further we insight into what is going on, please feel free to share. |
This error is spiking in my Crashlytics dashboard. This issue has 40 crash events affecting 7 users (My app only has less than 3000 installs). For a similar issue, someone suggested to use https://corbt.com/posts/2015/09/18/mixing-32-and-64bit-dependencies-in-android.html Does anyone know the implications of the above-mentioned fixes? |
The same issue as above: Could not find 'librealm-jni.so'. Looked for: [x86], but only found: []. |
@alexeyVh @SujithManjavana This has started appearing to my app after updating Does anything from above seems similar to your case? Have you solved the issue yet? |
@farmaker47 absolutely the same for me. The issue not solved, but doesn't seem critical - happens on two devices where one is rooted. |
In my case, there were non-rooted phones too. 'com.android.tools.build:gradle:7.2.2' |
Similar crash for me:
Non-rooted:
|
Unfortunately I had to remove completely the library. |
Same issue here, LGE Nexus 5x, Android 8.1.0, not rooted |
I have some events in crashlytics logging this error. |
Sentry reveals that devices which the app crashes from installed the sideloaded apk. It could be a reason. |
I also experience the issue in my app, there are quite many crashes for several users. And as mentioned before the issue happens mainly for LGE Nexus 5 Android 8.1.0 (but not only). I unpacked the bundle binary and it looks like all required versions of realm library are there. So it's more about serving a proper version of the library from Google Play to devices. But not sure if it depends on any realm and/or app project settings. I don't see such issue for other used libraries. |
I have the same issue, since we switched to app bundles recently. Maybe interesting - to use our app, a user needs to be logged in and we're adding the user's id in the crash report. |
I have seen this issue too for LG Nexus 5 |
Nexus 5X here, too |
Getting reports too with the same device. |
Nexus 5 here too. Same issue. |
Same issue.
|
Android Version: 8.1.0
|
Same here on Nexus 5X, Galaxy J7 Pro, Android 8. Fatal Exception: java.lang.RuntimeException: Unable to create application com.ihad.ptt.App: com.getkeepsafe.relinker.MissingLibraryException: Could not find 'librealm-jni.so'. Looked for: [x86], but only found: []. Fatal Exception: java.lang.RuntimeException: Unable to create application com.ihad.ptt.App: com.getkeepsafe.relinker.MissingLibraryException: Could not find 'librealm-jni.so'. Looked for: [armeabi-v7a, armeabi], but only found: []. Fatal Exception: java.lang.RuntimeException: Unable to create application com.ihad.ptt.App: com.getkeepsafe.relinker.MissingLibraryException: Could not find 'librealm-jni.so'. Looked for: [arm64-v8a, armeabi-v7a, armeabi], but only found: []. com.android.tools.build:gradle:7.4.2 Android app bundle. |
We cannot tolerate our app crashing, but this error is so fundamental that our app can't work without a database, so we just catch the error, record the event on crashlytics and finish the application. It's a temporal fix since this error doesn't happen very frequently.
|
We have received similar reports to this one, we think this issue is related to app bundle distribution and is not related to the Realm library. There are other parties affected by it. In version Realm Kotlin SDK The issue might be caused by users moving the app to the SD card, see Google issue, could you check if any of the solutions discussed there fixes the issue? We are not able to reproduce the issue at our end.
|
No, it's not.
|
@KimiChiu Thanks for trying, but what did you try that is not working? Was it the |
I tried both of them. The downloading size decreased from 42 to 20. I supposed it's working as the member of Google issue expected. So this setting is working but it couldn't fix it. |
Is there any fix to this, my errors are showing up in Firebase Testlab on a virtual device, no issues testing on through the Android Studio emulator or a real device. Testlab errors are generally reliable but I'm not sure what to do in this case Robo test, Pixel 2, Virtual, API level 30 |
Update from my previous comment... |
The problem seems to be still present |
Indeed. Our Android app has the same problem for Nexus 5X at moment of writing. Since the previous deployment we upgraded the next libraries:
|
I also have the same crash on Nexus 5X device and I am using realm version 10.15.1 |
Issue still happens with realm 10.15.1 on Nexus 5x Android 8.1.0 |
I'm also noticing a bunch of reports with 10.18.0 still. One thing I noticed in a manual test was that - at least for my test device - it seemed related to the Play Store. I downloaded the application and executed it directly from the store, and then ended up with this exception. After starting the app manually again directly, it started successfully. Not sure if that is also the case for all the crash reports I'm seeing, though. |
Is there any update on this issue, I still have this problem |
As Realm has been deprecated by MongoDB (see Realm/Atlas documentation at MongoDB website), nothing will happen here any more. |
Goal
I know there are some bugs with missing librealm-jni.so, but this is the biggest issue I have when using Realm and Bundle.
Actual Results
Users have occurred following error:
Could not find 'librealm-jni.so'. Looked for: [x86], but only found: [].
Device: Nexus 4
Android version: 6.0.1
Version of Realm and tooling
Realm version(s): 6.1.0
Realm Sync feature enabled: No
Android Studio version: 4.0
Android Build Tools version: 29.0.2
Gradle version: 6.3
Which Android version and device(s): Nexus 4 / 6.0.1
The text was updated successfully, but these errors were encountered: