Open aniketambore opened 1 year ago
After conducting some search on Stack Overflow related to this issue, I came across this question: https://stackoverflow.com/questions/65551415/failed-to-load-dynamic-library-in-flutter-app
Based on the information provided in the question and the answer, I decided to change my Android emulator API from 31 to 30 and attempted to run the project. Surprisingly, it worked without any issues.
To clarify, the emulator that triggered the error message: "Invalid argument(s): Failed to load dynamic library 'librust_bdk_ffi.so': dlopen failed: library 'librust_bdk_ffi.so' not found." was the Nexus 5x emulator with Release Name S, API Level 31, ABI x86_64, and Target Android 12.0.
On the other hand, the emulator that did not encounter the error was the Nexus 5x emulator with Release Name R, API Level 30, ABI x86, and Target Android 11.0.
Therefore, it seems that this issue is related to a small change in the development environment, specifically the choice of emulator when using bdk_flutter
. But yeah, it is worth noting that users utilizing API Level 31 may encounter this error.
@aniketambore Not sure what could be wrong, as we have been using bdk-flutter on both API Level 31 and 30. I would suggest creating a new emulator. Will be interesting to know if this turns out to be an issue. The only other issue could be Windows + Android Emulator with API Level 31. Because I have mostly tested on macOS with some testing on Windows and Linux.
Have the same problem with Pixel_3a_API_34_extension_level_7_x86_64
emulator on macOS. Seems to work fine in iOS simulator.
@brett-doffing Thanks for your interest. Will check that configuration. Are you targeting Level 7 in particular?
I can't say that I am targeting anything specifically at this point. That is merely the default emulator.
Ok, thanks for reporting the issue. Will test on that particular emulator and a few others.
I got the same error on linux
Exception has occurred.
ArgumentError (Invalid argument(s): Failed to load dynamic library 'librust_bdk_ffi.so': dlopen failed: library "librust_bdk_ffi.so" not found)
Runing on Pixel_3a_API_34_extension_level_7_x86_64
I alse used api lvl 30 and 33. Did not worked
I have been encountering the same issue.
When using ADK 11.0 my main thread seems to hang when the wallet is synced (with intermittment crashes). As far as I can tell, this is a known issue https://stackoverflow.com/questions/67755231/flutter-plugin-crash-dump-cpp-failed-to-attach-to-thread-185-permission-denie
When upgrading my device profile to instead use ADK 12.0 I get the error outlined in this issue with the failure to load dynamic library 'librust_bdk_ffi.so'.
Running on Ubuntu 22.04.3 & flutter 3.16.5 Dart 3.2.3, following along with the bdk_flutter_quickstart guide
Had the same issue, but it has been resolved with the bdk_flutter: ^0.30.0 version. Unfortunatly that created a new error for me. If you had the error mentioned by op and have the error "'librust_bdk_ffi.so': dlopen failed: cannot locate symbol "__extenddftf2" referenced by" after updating to 0.30.0 you can either use an emulator with api 30 or a real device. If i run it on my phone it works and it has api 33.
i am currently having the same issue with bdk_flutter: ^0.30.0 version which is the latest.
i use Memuplay Emulator
I encountered an error while testing the
bdk_flutter
package on Android. The error message states, "Invalid argument(s): Failed to load dynamic library 'librust_bdk_ffi.so': dlopen failed: library 'librust_bdk_ffi.so' not found."Here are the details of my environment:
I also tried to build the package from the source code following the guide provided in the README here to build it from the source code. However, during the execution of the
cargo build
command, I encountered the following error:I also attempted to run the
make all
command as specified in the guide, but it resulted in the following error:I would appreciate any guidance or suggestions on resolving this issue. Thank you!