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
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
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.
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us