qt_android_compile_sdk_version

Android ターゲットの SDK バージョン。

このプロパティは Qt 6.9 で導入されました。

Note: このプロパティは、Androidプラットフォームをターゲットにしている場合にのみ使用されます。

アプリケーションがコンパイルされる Android SDK のバージョンを指定します。これはcompileSdkVersion としてbuild.gradle に伝わります。この値は、このCMakeプロパティよりも優先されるandroiddeployqtのパラメータ--android-platform

set_target_properties(${target} PROPERTIES
    QT_ANDROID_COMPILE_SDK_VERSION 35
)

以下の形式でも動作します:

set_target_properties(${target} PROPERTIES
 QT_ANDROID_COMPILE_SDK_VERSION "android-35"
)

qt_android_generate_deployment_settings()およびQT_ANDROID_TARGET_SDK_VERSIONも参照ください

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.