QT_ANDROID_COMPILE_SDK_VERSION
AndroidのターゲットSDKバージョン。
このプロパティは Qt 6.9 で導入されました。
注:この プロパティは、Androidプラットフォームを対象とする場合にのみ使用されます。
アプリケーションのコンパイルに使用するAndroid SDKのバージョンを指定します。この値は、build.gradle に対してcompileSdkVersion として反映されます。この値は、androiddeployqtの --android-platform パラメータを介して指定することも可能ですが、その場合はこのCMakeプロパティよりも優先されます。
set_target_properties(${target} PROPERTIES
QT_ANDROID_COMPILE_SDK_VERSION 37.0
)以下の形式も使用可能です:
set_target_properties(${target} PROPERTIES
QT_ANDROID_COMPILE_SDK_VERSION "android-37.0"
)API レベル 37 以降、すべての Android SDK プラットフォームにはマイナー API レベルが含まれているため、それを完全に指定してください。たとえば、インストールされているプラットフォームに一致しない `37` ではなく、`37.0 ` を使用してください。
qt_android_generate_deployment_settings()およびQT_ANDROID_TARGET_SDK_VERSIONも参照してください 。
© 2026 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.