【发布时间】:2020-11-22 08:27:49
【问题描述】:
当我在颤振与代码资产中使用资产时出现此错误:-资产/图像/
[demo] flutter pub get
Error detected in pubspec.yaml:
Error on line 51, column 4: Expected a key while parsing a block mapping.
╷
51 │ assets:
│ ^
╵
Please correct the pubspec.yaml file at D:\Flutter\demo\pubspec.yaml
exit code 1
【问题讨论】:
-
给我 pubspec.yaml 的截图,
-
添加您的 pubspec.yaml 文件截图或代码 看起来您在
assets:之后没有添加新行 -
assets: - assets/images/ # - images/a_dot_ham.jpeg
标签: flutter