skip to Main Content

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.

BUILD FAILED in 3s
Running Gradle task ‘assembleDebug’… 4.6s
Exception: Gradle task assembleDebug failed with exit code 1

2

Answers


  1. try change minSdkVersion20 -> minSdkVersion 21 (add space before version)

    Login or Signup to reply.
  2. Go to your App level build.gradle file in android folder and then change

    minSdkVersion 20

    to

    minSdkVersion flutter.minSdkVersion

    Hope it will solve your error

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search