最近升級(jí)flutter3.0時(shí) 升級(jí)完成后 項(xiàng)目出現(xiàn):
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 到y(tǒng)aml
3枉阵、flutter pub upgrade