我正在使用Flutter编辑图像,例如裁剪和过滤功能。我找到了这个插件https://pub.dev/packages/image_editor_pro
在安装这个包及其依赖包时,我得到了这个错误。
Cannot open file, path = 'C:\flutter\.pub-cache\_temp\dir5ba449a4\test\fixtures\invalid\n_structure_<.>.json' (OS Error: The filename, directory name, or volume label syntax is incorrect.
, errno = 123)
pub finished with exit code 66我已经尝试了基于之前相关答案的所有方法,例如
flutter clean
flutter pub cache repair这是pubspec.yaml
name: application_editing
description: A new Flutter project.
environment:
sdk: ">=2.7.0 <3.0.0"
flutter: ">=1.20.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
zoom_widget: ^0.1.3
font_awesome_flutter: ^9.0.0
image_picker: ^0.7.4
path_provider: ^2.0.1
permission_handler: ^7.0.0
dio: ^4.0.0
screenshot: ^0.3.0
signature: ^4.0.2
flutter_colorpicker: ^0.4.0
firexcode: ^1.0.5
flutter_web_plugins:
sdk: flutter
collection: ^1.15.0
dev_dependencies:
pedantic: ^1.9.2
flutter_test:
sdk: flutter同时删除pub缓存文件夹。什么都不管用。这个问题只有在我安装这个image_editor_pro插件时才会出现。其他任何插件都不是这样的。
发布于 2021-11-13 11:05:29
我认为这是因为您添加了错误的包,或者您在资产中添加的图片URL不存在。
https://stackoverflow.com/questions/69948267
复制相似问题