-
Notifications
You must be signed in to change notification settings - Fork 110
Failed to load dynamic library sqlite3.dll on version 3.2.0 #357
Copy link
Copy link
Closed
Description
Platform: Windows 11
sqlite3 version: 3.2.0
[ZONE] Invalid argument(s): Couldn't resolve native function 'sqlite3_initialize' in 'package:sqlite3/src/ffi/libsqlite3.g.dart' : Failed to load dynamic library 'sqlite3.dll': Failed to load dynamic library 'sqlite3.dll': The specified module could not be found.
(error code: 126).
#0 Native._ffi_resolver.#ffiClosure0 (dart:ffi-patch/ffi_patch.dart)
#1 Native._ffi_resolver_function (dart:ffi-patch/ffi_patch.dart:1943:20)
#2 sqlite3_initialize (package:sqlite3/src/ffi/libsqlite3.g.dart)
#3 FfiBindings.sqlite3_initialize (package:sqlite3/src/ffi/bindings.dart:194:23)
#4 Sqlite3Implementation.initialize (package:sqlite3/src/implementation/sqlite3.dart:32:25)
#5 Sqlite3Implementation.open (package:sqlite3/src/implementation/sqlite3.dart:49:5)
#6 FfiSqlite3.open (package:sqlite3/src/ffi/implementation.dart:29:18)
#7 SqlStore.init (package:fl_lib/src/core/store/sqlite.dart:54:26)
<asynchronous suspension>
#8 ConnectionStatsStoreSqlite.init (package:server_box/data/store/connection_stats_sqlite.dart:33:5)
<asynchronous suspension>
#9 Stores.init (package:server_box/data/res/store.dart:52:5)
<asynchronous suspension>
#10 _initData (package:server_box/main.dart:58:3)
<asynchronous suspension>
#11 _initApp (package:server_box/main.dart:41:3)
<asynchronous suspension>
#12 main.<anonymous closure> (package:server_box/main.dart:23:5)
<asynchronous suspension>
I ran with flutter run -d windows. Also I tried to build but build passed. Still can't open the app.
I manually downloaded sqlite3.dll and placed it in the root directory of build artifacts, and app worked.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels