激活Flutter screenshots时持续出现File.create错误求助
安装screenshots工具时
pub global activate报错 环境与操作步骤
- 系统:macOS
- 按照screenshots官方文档步骤操作,已完成:
brew update && brew install imagemagick- 执行
pub global activate screenshots时触发报错
报错信息
执行pub global activate screenshots时出现以下错误:
File.create方法的命名参数少于被重写的方法,缺少exclusive参数ForwardingFile.createSync、MemoryFile.createSync存在类似参数不匹配问题- platform包中找不到
packageRoot成员
已尝试的无效解决方案
- 删除
pubspec.lock文件 - 执行
flutter pub get - 执行
dart pub upgrade
附加信息
pub outdated截图:
内容的提问来源于stack exchange,提问作者Lim Jiexian
相关产品推荐
相关产品推荐

