desk top
desk top

Reputation: 23

Problem to run the application showing some error message in Flutter

PS D:\Development\ULTIMAT POS\App POS Backup\UltimatePOS_Flutter_1.7.1\pos> flutter run Launching lib\main.dart on M2102J20SG in debug mode...

FAILURE: Build failed with an exception.

Could not get unknown property 'minSdkVersion20' for extension 'flutter' of type FlutterExtension.

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

Upvotes: 0

Views: 188

Answers (2)

hafeezrana
hafeezrana

Reputation: 23

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

Upvotes: 1

BalgabayevD
BalgabayevD

Reputation: 44

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

Upvotes: 0

Related Questions