'What is flutter.minSdkVersion?

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?



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MSARKrish