-
Notifications
You must be signed in to change notification settings - Fork 80
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
Failed to load dynamic library 'librealm_dart.so' #1595
Comments
➤ PM Bot commented: Jira ticket: RDART-983 |
Hi @Jyoshnarani What version of Realm? (2.0.0?) Device or emulator (or both)? Did the problem occur after upgrading an existing project, or when creating a new one? If upgrading, then from what version? Did you try If that didn't help. Did you try re-creating the android project: rm -rf android
flutter create . --platforms=android # ,... |
Hello @nielsenko What version of Realm? (2.0.0?) - 2.0.0 (I faced issue in 1.9.0 also) |
@Jyoshnarani What desktop are you on? The instructions for re-creating the android flutter project is for macos, and linux. |
@nielsenko , It's android flutter project |
Yes, but your development machine? What OS is that? |
Desktop - Windows |
Could you try re-creating the android platform project, and report back? |
I have tried upgrading and downgrading between Apart from the breaking change, regarding naming of part files ( I'll need further info to proceed with this. |
Yes you can ask which details you need from my end. |
Hi @Jyoshnarani Could you try re-creating the android platform project, and report back? |
I check with new project and I went through x.realm.dart also. But same error. |
Dart version is same Package : |
Could you do |
√ Built build\app\outputs\flutter-apk\app-debug.apk. ======== Exception caught by widgets library ======================================================= The relevant error-causing widget was: When the exception was thrown, this was the stack: |
What files do you see below:
|
Sorry, recursively? |
Ok, But Is there any solution? Exiting Project is in live. I'm facing this issue since last 2 days. |
Erhh 2.0.0 was released yesterday? You are the only one I know of with this problem? |
Apparently the app cannot load the shared library that is the core of the realm database. Given, what you have already tried I suspect that it somehow doesn't get bundled at all. Hence why I want to see the files I requested, since that is where the file will be downloaded to. You can also try to unzip the
|
Can you say what is the means of the error. Invalid argument(s): Failed to load dynamic library '/system/bin/librealm_dart.so': dlopen failed: library "/system/bin/librealm_dart.so" not found |
It fails to load the dynamic library as I said. It will look for it in multiple places. |
Are you by any chance running the same project? |
No in another project (New) he is using same package. Deferent windows. |
If it is a brand new project, I assume he could bundle it up in a zip file and attach it here. Then I can take a look. Including the build folder, please. |
With build its 600 MB - so unable to upload |
Could you upload just the generated Not sure what the EDIT: No need for this! |
Could you please update your pubspec.yaml to take a dependency on |
So adding a dep on |
h3.
What happened?
A bug happened!
Application is going to crash
Repro steps
Showing error
======== Exception caught by widgets library =======================================================
The following RealmError was thrown building Builder:
Realm error : Invalid argument(s): Failed to load dynamic library 'librealm_dart.so': dlopen failed: library "librealm_dart.so" not found
Invalid argument(s): Failed to load dynamic library '/system/bin/librealm_dart.so': dlopen failed: library "/system/bin/librealm_dart.so" not found
Invalid argument(s): Failed to load dynamic library 'librealm_dart.so': dlopen failed: library "librealm_dart.so" not found
The relevant error-causing widget was:
Version
Dart version 3.3.1
What Atlas Services are you using?
Local Database only
What type of application is this?
Flutter Application
Client OS and version
Android 13
Code snippets
No response
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: