Answers for "successfully generated launcher icons unhandled exception: formatexception: invalid number (at character 1)"

0

successfully generated launcher icons unhandled exception: formatexception: invalid number (at character 1)

see this: https://stackoverflow.com/questions/70580684/flutter-launcher-icons-not-working-unhandled-exception-formatexception-invalid
Posted by: Guest on March-19-2022
0

flutter_launcher_icons FormatException: Invalid number (at character 1)

I just had the same problem and solved doing this in android/app/build.gradle.

Changed:
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion

To:
minSdkVersion 26
targetSdkVersion 30

After that, I could not run on emulator, so I changed back the gradle file 
(without running flutter_launcher_icon again). Now I have the app running and 
the icons are right.
Posted by: Guest on February-12-2022
0

flutter_launcher_icons FormatException: Invalid number (at character 1)

Solved with replacing this line
(~/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_launcher_icons-0.9.2/lib/android.dart#308):

// final String minSdk = line.replaceAll(RegExp(r'[^\d]'), '');
// To this:
final String minSdk = "21"; // line.replaceAll(RegExp(r'[^\d]'), '');

That's so stupid I know. But why not? If it's only for the one time of using it.
Posted by: Guest on February-12-2022

Code answers related to "successfully generated launcher icons unhandled exception: formatexception: invalid number (at character 1)"

Browse Popular Code Answers by Language