-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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:///C:/Users/Heba/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_launcher_icons-0.9.2/bin/main.dart:6:26) #6 _delayEntrypointInvocation.<anonymous closure> (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[BUG] #359
Comments
Same problem. Here's my pubspec.yaml.
|
Same problem |
I get the same problem. Here is my config:
If I comment out the adaptive items, it works. My error is slightly different:
|
the flutter changed the way to set the minSdkVersion after editing the file, all works fine this can be a workaround yet the package not update |
same problem |
@vensauro this was the fix thanks |
this is a nice alternative, I think that this repo needs more maintainers, the actual maintainer can not have more time to work here (and that's is ok) |
You can also use one of the many fixed forked versions to get around the problem. For example: dev_dependencies:
flutter_launcher_icons:
git:
url: git@github.com:RatakondalaArun/flutter_launcher_icons.git
ref: fix/flutter-v2.8.0-support-321 This checks the
|
Should use this forked package instead: https://pub.dev/packages/icons_launcher |
Just add in android/app/build.gradle
instead of
|
defaultConfig {
change minSdkVersion to 21 , after this it will work |
@priyaranjan-mantri and @draskosaric Your solution is correct, making those changes will workaround the problem. However, new Flutter projects will not use a hard coded number for |
Yes, you are right. This is a quick workaround. And this plugin unfortunately is not the only one that needs this kind of hack. |
Same Problem I'm also facing while running ════════════════════════════════════════════
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:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_launcher_icons-0.9.2/bin/main.dart:6:26)
#6 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:32)
#7 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12) |
problem is solved.. |
ℹ️ Info
Version:
e.g. v0.7.5
💬 Description
Enter a description of your problem here
📜 Pubspec.yaml
We ask that you include your pubspec.yaml file as a common problem we have seen has been the pubspec.yaml file being incorrect
The text was updated successfully, but these errors were encountered: