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

相关推荐
大熊的瓜地1 小时前
Android automotive 框架
android·android car
私人珍藏库2 小时前
[Android] Alarm Clock Pro 11.1.0一款经典简约个性的时钟
android·时钟
消失的旧时光-19434 小时前
ScheduledExecutorService
android·java·开发语言
小糖学代码4 小时前
MySQL:14.mysql connect
android·数据库·mysql·adb
消失的旧时光-19435 小时前
Flutter Event Loop
flutter
怪兽20146 小时前
请谈谈什么是同步屏障?
android·面试
程序员老刘7 小时前
跨平台开发地图:客户端技术选型指南 | 2025年10月
flutter·react native·客户端
帅锅锅0077 小时前
SeLinux 全面详解
android·linux
只想搞钱的肥仔7 小时前
Android thermal (5)_cooling device(下)
android
某空m7 小时前
【Android】BottomNavigationView实现底部导航栏
android·java