Recently I've noted Flutter has done some changes to android\app\build.gradle
, it is not using numeric values for compileSdkVersion
, minSdkVersion
and targetSdkVersion
anymore, instead it is using flutter.compileSdkVersion , flutter.minSdkVersion and flutter.targetSdkVersion respectively.
So my question is: Where/How are those values configured? because I don't find info on Web.
You can set these values on android/local.properties
like so,
flutter.versionCode=1
flutter.versionName=1.0.0
flutter.minSdkVersion = 21
flutter.targetSdkVersion = 29
flutter.compileSdkVersion = 30
flutter.ndkVersion=21.0.6011959
Update version numbers as required.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.