[Flutter Launcher Icons] Unhandled exception: FormatException: Invalid number (at character 1)

Flutter Launcher Icons

A command-line tool which simplifies the task of updating your Flutter app’s launcher icon. Fully flexible, allowing you to choose what platform you wish to update the launcher icon for and if you want, the option to keep your old launcher icon in case you want to revert back sometime in the future.

  • flutter_launcher_icons
  • https://giters.com/fluttercommunity/flutter_launcher_icons/issues/324
  • https://appiconmaker.co/Home/
  • https://icon.wuruihong.com
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
  ════════════════════════════════════════════
     FLUTTER LAUNCHER ICONS (v0.9.1)
  ════════════════════════════════════════════


✓ Successfully generated launcher icons
Unhandled exception:
FormatException: Invalid number (at character 1)

^

#0      int._handleFormatError (dart:core-patch/integers_patch.dart:129:7)
#1      int.parse (dart:core-patch/integers_patch.dart:55:14)
#2      minSdk (package:flutter_launcher_icons/android.dart:309:18)
#3      createIconsFromConfig (package:flutter_launcher_icons/main.dart:94:47)
#4      createIconsFromArguments (package:flutter_launcher_icons/main.dart:60:7)
#5      main (file:///D:/app/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_launcher_icons-0.9.2/bin/main.dart:6:26)
#6      _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:295:32)
#7      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)
pub finished with exit code 255

If you don’t have a flutter.minSdkVersion property, then add it to local.properties file:

flutter.minSdkVersion=21

Then run :

flutter clean

Then run the flutter launcher icon command:

flutter pub get
flutter pub run flutter_launcher_icons:main

你可能感兴趣的:(Flutter,flutter,ios,android)