HarmonyOS flutter混编,在flutter工程引入三方库sqflite、cached_network_image冲突

flutter混编,在flutter工程同时引入三方库sqflite、cached_network_image冲突,无法安装,错误日志如下:

Running "flutter pub get" in flutterbasepackage...
Resolving dependencies... (1.9s)
The current Dart SDK version is 2.19.6.

Because no versions of flutter_cache_manager match >3.3.1 <3.3.2 and flutter_cache_manager >=3.0.0-nullsafety.2 <3.3.1 depends on sqflite ^2.0.0+3,
flutter_cache_manager >=3.0.0-nullsafety.2 <3.3.1-∞ or >3.3.1 <3.3.2-∞ requires sqflite ^2.0.0+3.
And because flutter_cache_manager >=3.3.2 <3.3.3 depends on sqflite ^2.3.3 and flutter_cache_manager >=3.3.3 requires SDK version >=3.0.0 <4.0.0,
flutter_cache_manager >=3.0.0-nullsafety.2 <3.3.1-∞ or >3.3.1 requires sqflite ^2.0.0+3.
And because flutter_cache_manager 3.3.1 depends on sqflite ^2.0.0+4 and cached_network_image 3.2.3 depends on flutter_cache_manager ^3.3.0,
cached_network_image 3.2.3 requires sqflite from hosted.
So, because flutterbasepackage depends on both cached_network_image 3.2.3 and sqflite from git, version solving failed.
HarmonyOS
1天前
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
FengTianYa

报错为flaskbasepackage同时依赖于cached_network_image 3.2.3和git上的sqflite,所以版本解析失败。如果在相关三方库引用多版本出现冲突,可以通过 dependency_overrides解决冲突。

分享
微博
QQ
微信
回复
1天前
相关问题
HarmonyOS flutter三方支持问题
42浏览 • 1回复 待解决
HarmonyOS flutter三方plugin适配进展
48浏览 • 1回复 待解决
HarmonyOS 如何检测引入三方的权限
656浏览 • 1回复 待解决
如何引入自己的“第三方
624浏览 • 1回复 待解决
工程中的三方怎么clear ?
222浏览 • 1回复 待解决
Native工程中如何使用其他三方so
2314浏览 • 1回复 待解决
HarmonyOS 三方sdk是否可以动态引入
13浏览 • 1回复 待解决