[英]Are "flutter.targetSdkVersion", "flutter.compileSdkVersion" and "flutter.minSdkVersion" configurable?
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. 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.因为我没有找到关于 Web 的信息。
You can set these values on android/local.properties
like so,您可以像这样在android/local.properties
上设置这些值,
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.根据需要更新版本号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.