小编MNB*_*rld的帖子

为什么在 flutter 项目中添加启动器图标时出现错误?

因此,我正在尝试用我的图标更改默认的颤动启动器图标。我正在使用flutter_launcher_icons: ^0.9.2pub.dev 。 \npubspec.yaml 中的代码:

\n
dependencies:\n  flutter:\n    sdk: flutter\n\n\n  # The following adds the Cupertino Icons font to your application.\n  # Use with the CupertinoIcons class for iOS style icons.\n  cupertino_icons: ^1.0.2\n  hexcolor: ^2.0.5\n  google_fonts: ^2.1.0\n  flutter_neumorphic: ^3.2.0\n  flutter_launcher_icons: ^0.9.2\n\ndev_dependencies:\n  flutter_lints: ^1.0.4\n  flutter_test:\n    sdk: flutter\n\nflutter_icons:\n  image_path: "assets/icon/icon.png"\n  android: true\n  ios: true\n
Run Code Online (Sandbox Code Playgroud)\n

但是当我运行时flutter pub run flutter_launcher_icons:main,我收到错误消息:

\n
  \xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\n     FLUTTER LAUNCHER ICONS (v0.9.1)\n  \xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\n\n\n\xe2\x9c\x93 Successfully generated launcher icons\nUnhandled exception:\nFormatException: Invalid number (at character 1)\n\n^\n\n#0      int._handleFormatError (dart:core-patch/integers_patch.dart:129:7)\n#1 …
Run Code Online (Sandbox Code Playgroud)

dart visual-studio-code flutter

20
推荐指数
3
解决办法
1万
查看次数

如何获取谷歌 Pixel 6 模拟器皮肤?

谁能告诉我如何获取 android 12 google Pixel 6 和 6 Pro 模拟器皮肤进行开发?我在互联网上找不到任何解决方案,因此提出了堆栈溢出的问题。

android-emulator android-studio visual-studio-code

9
推荐指数
1
解决办法
5822
查看次数