QT_ANDROID_COMPILE_SDK_VERSION
Version du SDK pour Android.
Cette propriété a été introduite dans Qt 6.9.
Remarque : cette propriété n'est utilisée que si l'on vise la plateforme Android.
Spécifie la version du SDK Android avec laquelle votre application est compilée. Cette valeur est propagée à build.gradle sous la forme compileSdkVersion. Cette valeur peut être fournie via le paramètre --android-platform d'androiddeployqt, qui a la priorité sur cette propriété CMake.
set_target_properties(${target} PROPERTIES
QT_ANDROID_COMPILE_SDK_VERSION 36
)Le format suivant fonctionne également :
set_target_properties(${target} PROPERTIES
QT_ANDROID_COMPILE_SDK_VERSION "android-36"
)Voir aussi qt_android_generate_deployment_settings() et 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.