簡體   English   中英

Flutter 啟動器圖標命令拋出錯誤

[英]Flutter launcher Icons command throws error

我的 flutter 應用程序中有以下配置,

Flutter 應用配置

但是當我嘗試更新我的應用程序的啟動器圖標時出現以下錯誤。

 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)

請告知如何解決這個問題?

試試下面的代碼希望它對你有幫助。 在您的build.gradle文件project_name/android/app/build.gradle中進行一些更改

編譯 SDK

compileSdkVersion 31

最小 SDK 和目標 SDK

    minSdkVersion 23
    targetSdkVersion 30
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName

然后嘗試以下命令:

flutter pub run flutter_launcher_icons:main

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM