simolus3 / drift

Drift is an easy to use, reactive, typesafe persistence library for Dart & Flutter.
https://drift.simonbinder.eu/
MIT License
2.41k stars 349 forks source link

SqliteException(14):while opening the database, unable to open database file (code 14) #2971

Open amit1172 opened 1 month ago

amit1172 commented 1 month ago

this example/app : https://github.com/simolus3/drift/tree/develop/examples/app

in windows when i try to run it throws below error

flutter: SqliteException(14): while opening the database, unable to open database file, unable to open database file (code 14)

Got a stack frame from package:stack_trace, where a vm or web frame was expected. This can happen if FlutterError.demangleStackTrace was not set in an environment that propagates non-standard stack traces to the framework, such as during tests. 'package:flutter/src/foundation/stack_frame.dart': Failed assertion: line 195 pos 7: 'line != '===== asynchronous gap ===========================''

The relevant error-causing widget was: HomePage HomePage:file:///C:/Users/AMIT/Downloads/simolus3%20drift%20develop%20examples-app/lib/main.dart:19:35

can some one help resolve this error ?

Thanks.