美文网首页
Flutter 升级完成后出错pub.dev/file-6.1.

Flutter 升级完成后出错pub.dev/file-6.1.

作者: 一只搬运工的自我修养 | 来源:发表于2023-05-16 11:33 被阅读0次

最近升级flutter3.0时 升级完成后 项目出现:
Could not build the precompiled application for the device.
Error (Xcode): ../../.pub-cache/hosted/pub.dev/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'.

image.png

解决办法:
1、flutter clean
2、添加 file: ^6.1.4 到yaml
3、flutter pub upgrade

相关文章

网友评论

      本文标题:Flutter 升级完成后出错pub.dev/file-6.1.

      本文链接:https://www.haomeiwen.com/subject/jgtbsdtx.html