QT_ANDROID_COMPILE_SDK_VERSION
Versión del SDK de Android.
Esta propiedad se introdujo en Qt 6.9.
Nota: Esta propiedad sólo se utiliza si el objetivo es la plataforma Android.
Especifica la versión del SDK de Android con la que se compila la aplicación. Esto se propaga a build.gradle como compileSdkVersion. Este valor puede ser proporcionado a través del parámetro --android-platform de androiddeployqt que tiene prioridad sobre esta propiedad CMake.
set_target_properties(${target} PROPERTIES
QT_ANDROID_COMPILE_SDK_VERSION 36
)El siguiente formato también funciona:
set_target_properties(${target} PROPERTIES
QT_ANDROID_COMPILE_SDK_VERSION "android-36"
)Ver también qt_android_generate_deployment_settings() y 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.