-
Notifications
You must be signed in to change notification settings - Fork 316
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
Cant use Sqlite with Android (only emulator issue probably) #1844
Comments
Yes, as you mentioned, I also guess it is not likely to be a bug of flutter_rust_bridge. Indeed it says:
A quick search shows e.g. tauri-apps/tauri#7413 And what about asking/searching in the sqlite lib you use (e.g. "it has blahblah error when on x86 android") |
Yep, I saw tauri-apps/tauri#7413 and even found a workaround but didn't understand how to apply it for frb project rusqlite/rusqlite#1380 (comment) If you have android device I will be grateful if you approve that all works on real device. |
Looks like you just need to fork
I can confirm that flutter_rust_bridge works on real android pretty well; but never tried sqlite before in my own app. |
Thanks for the hint. This solution works. Just need to create |
Close since this is solved. Feel free to reopen if needed! |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue. |
Describe the bug
Minimal reproducible project is here https://github.com/NightBlaze/frb_sqlite
I want to use Sqlite as storage for my app and all works fine on iOS Simulator and iOS real device but doesn't work on Android emulator x86_64. I googled the issue and it seems that it's related only to x86_64 arch and all works on real Android devices (arm) but I don't have real Android device and can't test it.
I tried to use diesel and sqlx crates. Results are same.
When I run app on Android emulator it logs an error to console (see Logs) and doesn't start.
It's not FRB related issue but it will be nice if we find a solution for other who will use Sqlite + Android.
Also need to be sure that it's only emulator issue.
Steps to reproduce
Clone https://github.com/NightBlaze/frb_sqlite and run on Android emulator.
Logs
Expected behavior
No response
Generated binding code
No response
OS
macOS
Version of
flutter_rust_bridge_codegen
flutter_rust_bridge_codegen 2.0.0-dev.28
Flutter info
Version of
clang++
-> % clang++ --version Apple clang version 15.0.0 (clang-1500.3.9.4) Target: x86_64-apple-darwin23.4.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Additional context
No response
The text was updated successfully, but these errors were encountered: