-
Notifications
You must be signed in to change notification settings - Fork 353
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 lib/libsqlite3.so" not found #1073
Comments
It sounds like you can reproduce this with a new project, can you push an example for that to GitHub so that I can take a look at it? |
I create another new project on my windows pc rather than macOS pc and also the same error logs. also tried with emulator android v30 sdk x86
|
I noticed that I had to manually add |
yes I do it by install sqlite3 and update all pubspec.lock dependences and also I downgrade moor to 3.4.0 but the error also appear to me. |
Were there related issues with a previous version? Or is this just to avoid compiler lints about empty structs? Anyway, I tried to reproduce this (on Linux) by running:
import 'package:flutter/material.dart';
import 'package:sqlite3/sqlite3.dart';
void main() {
print(sqlite3.version);
runApp(Container());
} Everything works fine for me. You probably tried this already, but does |
@simolus3 I am not sure, I am stuck somewhere between 3.1.0 and 4.0.0. Won't be able to upgrade to 4.1.0 for a while but need some features around migrations that were added for the not release 3.5.0 version. And I had to configure it at some point. |
I install sqlite3 v1.0.0 and do it but the the same error appear in windows pc and macOS pc |
@TaifRaoof Can you post a full example to GitHub? I can't reproduce what you're describing. |
Failed to load dynamic library this my example: https://github.com/hpn33/moor_shared and should clone this for depen: |
is work fine |
It looks like @hpn33's problem was solved and I can't act on this without further information from @TaifRaoof. If you have a small project that reproduces this please let me know, please be aware that you need to install sqlite on desktop operating systems. |
Hi, I downloaded precompiled binaries for windows called "sqlite-dll-win64-x64-3370000.zip", extract it to a folder. Now I have two files in this folder. I added this folder to my PATH variable but got still the same error. Edit: Sorry, it's working now after reboot. |
It may be late now, but if this happens on Linux, you need: |
Thanks @ChrisGy, your comment saved my day. |
@ChrisGy best comment here, thanks a lot. |
when i create new project with flutter v2 and moor with v4.1 and sqlite3_flutter_libs v 0.4.0+1 an error appear with log.
i use macOS operating system and test this operation on more than one devices android system.
and also before update all library and with flutter v1.26 and moor v3.4 also an error occurred
while when i open old project it work correctly.
flutter_app_demo3/lib/libsqlite3.so" not found) E/flutter (22355): #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:55) E/flutter (22355): #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:20:12) E/flutter (22355): #2 _defaultOpen (package:sqlite3/src/load_library.dart:40:31) E/flutter (22355): #3 OpenDynamicLibrary.openSqlite (package:sqlite3/src/load_library.dart:110:12) E/flutter (22355): #4 sqlite3 (package:sqlite3/src/api/sqlite3.dart:9:34) E/flutter (22355): #5 sqlite3 (package:sqlite3/src/api/sqlite3.dart) E/flutter (22355): #6 _VmDelegate._createDatabase (package:moor/src/ffi/vm_database.dart:159:13) E/flutter (22355): #7 _VmDelegate.open (package:moor/src/ffi/vm_database.dart:138:7) E/flutter (22355): #8 DelegatedDatabase.ensureOpen.<anonymous closure> (package:moor/src/runtime/executor/helpers/engines.dart:253:22) E/flutter (22355): <asynchronous suspension> E/flutter (22355): #9 Lock.synchronized.callBlockAndComplete (package:moor/src/utils/synchronized.dart:18:16) E/flutter (22355): <asynchronous suspension> E/flutter (22355): #10 DatabaseConnectionUser.doWhenOpened.<anonymous closure> (package:moor/src/runtime/api/connection_user.dart) E/flutter (22355): <asynchronous suspension> E/flutter (22355):
The text was updated successfully, but these errors were encountered: