【问题标题】:Upgrading flutter android build tools升级flutter android构建工具
【发布时间】:2021-11-03 00:09:02
【问题描述】:

Flutter 默认在 android API 级别 29 上构建 apk 我想将它升级到 30 怎么办?我是新来的我不知道,我试图用谷歌搜索它但它没有帮助

【问题讨论】:

    标签: android flutter android-studio build-tools flutter-android


    【解决方案1】:

    在 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答案并进行了相应修改

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-10
      • 2017-08-02
      • 2022-08-11
      • 2021-01-21
      • 2022-07-16
      • 2023-02-02
      • 2014-12-14
      • 2021-11-28
      相关资源
      最近更新 更多