Reputation: 165
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.
Upvotes: 12
Views: 8748
Reputation: 13
Go to android/local.properties there you can change configuration
Upvotes: -1
Reputation: 191
Add the following ie define the versions
minSdkVersion localProperties.getProperty('flutter.minSdkVersion').toInteger()
targetSdkVersion localProperties.getProperty('flutter.targetSdkVersion').toInteger()
Update the Kotlin version
ext.kotlin_version = '1.6.0'
Upvotes: 19
Reputation: 380
just replace flutter.minSdkVersion with your value ,
defaultConfig {
applicationId "com.example.app"
minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Upvotes: 13
Reputation: 2490
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
Upvotes: 7