PS D:DevelopmentULTIMAT POSApp POS BackupUltimatePOS_Flutter_1.7.1pos> flutter run
Launching libmain.dart on M2102J20SG in debug mode…
FAILURE: Build failed with an exception.
-
Where:
Build file ‘D:DevelopmentULTIMAT POSApp POS BackupUltimatePOS_Flutter_1.7.1posandroidappbuild.gradle’ line: 50 -
What went wrong:
A problem occurred evaluating project ‘:app’.
Could not get unknown property ‘minSdkVersion20’ for extension ‘flutter’ of type FlutterExtension.
- Try:
Run with –stacktrace option to get the stack trace.
Run with –info or –debug option to get more log output.
Run with –scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 3s
Running Gradle task ‘assembleDebug’… 4.6s
Exception: Gradle task assembleDebug failed with exit code 1
2
Answers
try change minSdkVersion20 -> minSdkVersion 21 (add space before version)
Go to your App level build.gradle file in android folder and then change
to
Hope it will solve your error