flutter: parameter format not correct
Solution 1
This error occurred because of the app level Gradle.file minSdkVersion property is less than 20 or the targetSdkVersion property is less than 30.
It may work for you. In my case, it works perfectly.
minSdkVersion
: 20
targetSdkVersion
: 30
Solution 2
As I observe your Flutter Doctor, it's already defined that Android toolchain and the Android Studioandroid studio is not configured. So. follow the below steps. For resolve Android toolchain run the "flutter doctor --android-licenses". And for "Android Studio" resolve please goto Android Studio -> Files -> Settings -> Plugins -> install the Flutter. While installing flutter its also asked for install dart click ok and after installation, it will ask to restart the Android Studio. After restart goes to Flutter terminal and runs Flutter Doctor, Now you have resolved the above issue. The last issue is just ignored because it's just showing that no devices are connected.
And you can run the Flutter in Android Studio in Windows and Mac.
Solution 3
run these in your project folder,
flutter channel stable
flutter upgrade --force
flutter pub cache repair
flutter clean
Now try to run
Comments
-
ella almost 2 years
I am new to Flutter and today I've been stuck to one problem. I cannot debug my app because it says parameter format not correct
Parameter format not correct - FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:packageDebug'. > Several variant outputs are configured to use the same file name "resources-debug.ap_", filters : MAIN:MAIN
Here's my flutter doctor
Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, v1.17.5, on Microsoft Windows [Version 10.0.18362.900], locale en-US) [!] Android toolchain - develop for Android devices (Android SDK version 28.0.3) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [!] Android Studio (version 3.4) X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. [√] VS Code (version 1.46.1) [!] Connected device ! No devices available ! Doctor found issues in 3 categories.
I've looked for answers everywhere and they didn't work for my case. Most of the solutions are suggesting to change environment path. This is my path: C:\src\flutter\bin note: I'm using VSCode
Please help.. thank you!
-
Akora Ing. DKB almost 4 yearsNot sure exactly how to fix it but follow this issue to see if you'll find a way around it.
-
ella almost 4 years@AkoraIng.DKB Thank you for responding! :)
-
sandwhale over 2 yearsi have a same issues here
-
-
Maccesch over 3 yearsPlease put the the code that is meant to be executed in the terminal into a code block.
-
sandwhale over 2 yearsi donnt get it man
-
sandwhale over 2 yearslike step by step? channel stable and then upgrade? like tthat?