【发布时间】:2021-11-03 00:09:02
【问题描述】:
Flutter 默认在 android API 级别 29 上构建 apk 我想将它升级到 30 怎么办?我是新来的我不知道,我试图用谷歌搜索它但它没有帮助
【问题讨论】:
标签: android flutter android-studio build-tools flutter-android
Flutter 默认在 android API 级别 29 上构建 apk 我想将它升级到 30 怎么办?我是新来的我不知道,我试图用谷歌搜索它但它没有帮助
【问题讨论】:
标签: android flutter android-studio build-tools flutter-android
在 Android Studio 中打开一个 Flutter 项目,你必须编辑 build.gradle 文件。在一个flutter项目中,在路径./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"
}
灵感来自this答案并进行了相应修改
【讨论】: