Open qinchong1988 opened 1 year ago
It seems that you have upgraded only sqflite_common. pub upgrade
should fix the issue.
My application's sqflite cannot be quickly upgraded to the latest version (2.2.8) yet, there is a gradle upgrade to handle, but older versions of sqflite rely on sqflite_common with a maximum range of 4.0.0,It happened. I'm sorry.
I will solve this problem in this way first, and then upgrade later.
sqflite:2.27
dependency_overrides: sqflite_common: 2.4.3 sqflite_common_ffi: 2.2.4
Yes sorry I don't know how to set an upper limit of a previously published package. And sorry I put both an Android project upgrade and some declaration move. You can use the following overrides:
dependency_overrides:
sqflite: '<=2.2.7'
sqflite_common: '<=2.4.4'
sqflite_common_ffi: '<=2.2.4'
Error: 'getDatabasesPath' is imported from both 'package:sqflite/sqflite.dart' and 'package:sqflite_common/sqflite.dart'.
pubspec.lock
sqflite: dependency: transitive description: name: sqflite url: "https://pub.dartlang.org" source: hosted version: "2.0.0+4" sqflite_common: dependency: transitive description: name: sqflite_common url: "https://pub.dartlang.org/" source: hosted version: "2.4.4" sqflite_common_ffi: dependency: transitive description: name: sqflite_common_ffi url: "https://pub.dartlang.org/" source: hosted version: "2.2.4"