我在我的颤音应用程序中有下面的配置,
但是,当我试图更新我的应用程序的启动图标时,我得到了下面的错误。
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:///Users/aravindganesh/.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)
请建议如何解决这一问题?
发布于 2022-04-17 22:41:31
尝试下面的代码,希望它对你有帮助。对您的project_name/android/app/build.gradle
文件build.gradle
进行一些更改
编译SDK
compileSdkVersion 31
min和目标SDK
minSdkVersion 23
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
然后尝试以下命令:
flutter pub run flutter_launcher_icons:main
https://stackoverflow.com/questions/71908328
复制