首页 > 解决方案 > 启动器图标未插入颤振

问题描述

在pubspec.yaml中检测到 pubspec.yaml:第 18 行第 28 列出错:此处不允许映射值。你之前错过了一个冒号吗?╷ 18 │ flutter_launcher_icons: "^0.7.3"

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_launcher_icons: "^0.7.3"

标签: flutterflutter-dependencies

解决方案


我在你的代码中看不到 18 行,所以不能说确切的问题,但在我的建议中,你可以使用像flutter_launcher_icons: ^0.7.5

我已经像这样使用我的代码,

dev_dependencies:
  image: ^2.1.14
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.

  flutter_launcher_icons: ^0.7.5

我还添加了image:^2.1.14依赖项

虽然我不知道它的重要性你也可以试试这个


推荐阅读