Flutter Icon Exception

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

^

#1      int.parse (dart:core-patch/integers_patch.dart:55:14)
#2      minSdk (package:flutter_launcher_icons/android.dart:294:18)
#3      createIconsFromConfig (package:flutter_launcher_icons/main.dart:90:47)
#4      createIconsFromArguments (package:flutter_launcher_icons/main.dart:58:7)
#5      main (file:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_launcher_icons-0.8.1/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)

To resolve the issue change following properties in android/app/build.gradle

minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion

To

minSdkVersion 26
targetSdkVersion 32