Home > Back-end >  How to update minSdkVersion in flutter updated 2.8?
How to update minSdkVersion in flutter updated 2.8?

Time:12-11

Before updating to Flutter 2.8

defaultConfig {
    applicationId "com.kim.app"
    minSdkVersion 16
    targetSdkVersion 30
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
    multiDexEnabled true
}

After updating to Flutter 2.8:

defaultConfig {
        applicationId "com.example.app"
        minSdkVersion flutter.minSdkVersion
        targetSdkVersion flutter.targetSdkVersion
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }

How can I update minSdkVersion higher? I cannot find the target "flutter.minSdkVersion" variable anywhere.

CodePudding user response:

Just replace flutter.minSdkVersion to your target version.

flutter.minSdkVersion is found in https://github.com/flutter/flutter/blob/stable/packages/flutter_tools/gradle/flutter.gradle

CodePudding user response:

just replace flutter.minSdkVersion with your value ,

defaultConfig {
        applicationId "com.example.app"
        minSdkVersion 21
        targetSdkVersion flutter.targetSdkVersion
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }

  • Related