Flutter升级错误

升级一个老项目,用的是flutter,升级完了一直报错:

/C:/Users/***/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/file-6.1.2/lib/src/interface/file.dart:15:16: Error: The method 'File.create' has
fewer named arguments than those of overridden method 'File.create'.
Future<File> create({bool recursive = false});

 

原因:File版本太低,在pubspec.yaml指定 file: ^6.1.4 即可

posted @   深圳大漠  阅读(404)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· SQL Server 2025 AI相关能力初探
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
点击右上角即可分享
微信分享提示