flutter TARGET_SDK_VERSION和android 13

config.gradle

c 复制代码
ext{

    SDK_VERSION = 33

    MIN_SDK_VERSION = 23

    TARGET_SDK_VERSION = 33

    COMPILE_SDK_VERSION = SDK_VERSION

    BUILD_TOOL_VERSION = "33.0.0"

    //兼容库版本
    SUPPORT_LIB_VERSION = "33.0.0"

}

app/build.gradle里面的

c 复制代码
    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.socialim.app"
        minSdkVersion MIN_SDK_VERSION
        targetSdkVersion TARGET_SDK_VERSION//就是这个,传33过去
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        multiDexEnabled true
        ndk {
            abiFilters "arm64-v8a"
        }
        manifestPlaceholders = [
//                XG_ACCESS_ID : "1520011435",  // 信鸽官网注册所得ACCESS_ID
//                XG_ACCESS_KEY: "ASUNQ06ER3EY",  // 信鸽官网注
XG_ACCESS_ID : "1520011440",
XG_ACCESS_KEY: "ALGHMUEIG5I4",
        ]
    }

有时候谷歌会让你发的app版本起码为android 13,那就要改上面的TARGET_SDK_VERSION

相关推荐
世人万千丶26 分钟前
鸿蒙Flutter Flex多子组件权重分配
学习·flutter·华为·harmonyos·鸿蒙
GitLqr1 小时前
Flutter 无障碍开发实战:玩转 Semantics 解决视障用户使用痛点
android·flutter·dart
雨白5 小时前
掌握 NestedScrolling 嵌套滑动:手写仿知乎折叠主页
android
Xzaveir6 小时前
别把所有“认证”都塞进 AuthService:实名、一键登录与号码身份的领域拆分
android·人工智能
BerrySen1786 小时前
KMP全栈开发:从Android到AI Agent的技术演进与实践
android·人工智能
AFinalStone8 小时前
Android 7系统休眠唤醒(一)电源管理架构全景图
android·powermanager·电源管理
世人万千丶8 小时前
鸿蒙Flutter Flexible与Expanded的区别
学习·flutter·harmonyos·鸿蒙
YM52e8 小时前
鸿蒙Flutter Center居中组件:Align对齐详解
android·学习·flutter·华为·harmonyos·鸿蒙
时间的拾荒人9 小时前
MySQL 视图详解
android·数据库·mysql
祉猷并茂,雯华若锦10 小时前
Appium 3.x安卓按键与通知栏操作全指南
android·appium