默认情况下,Flutter 在 android API 级别 29 上构建 apk 我想将其升级到 30,我该怎么做?我是新手,我不知道,我试着用谷歌搜索,但没有帮助
就像在 Android Studio 项目中一样,您必须编辑 build.gradle 文件。在一个flutter项目中,在path中找到./android/app/build.gradle
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.projectname"
minSdkVersion 19
targetSdkVersion 28 // Set this to 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
灵感来自此答案并相应修改
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句