What is flutter.minSdkVersion?

Viewed 748

When I created a new flutter app, the content of android\app\build.gradle is

...
defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.example.app_name"
        minSdkVersion flutter.minSdkVersion
        targetSdkVersion flutter.targetSdkVersion
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }
...

What is flutter.minSdkVersion? Where it comes from? How do we know the actual value of it?

1 Answers

flutter.minSdkVersion value is coming from your installed flutter SDK's flutter.gradle file which is located inside your_flutter_sdk/packages/flutter_tools/gradle/flutter.gradle

In Simple words flutter.minSdkVersion is your project will support from that android version. If you want to change for particular project then you can replace flutter.minSdkVersion with 18 or other SDK number you want.

enter image description here

Related