flutter TARGET_SDK_VERSION和android 13

config.gradle

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里面的

    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

猜你喜欢

转载自blog.csdn.net/weixin_44911775/article/details/132454185