QT_ANDROID_COMPILE_SDK_VERSION
Versione SDK di destinazione per Android.
Questa proprietà è stata introdotta in Qt 6.9.
Nota: questa proprietà viene utilizzata solo se si sceglie come piattaforma di destinazione Android.
Specifica la versione dell'SDK Android con cui viene compilata l'applicazione. Questo valore viene propagato a ` build.gradle ` come ` compileSdkVersion`. È possibile specificare questo valore tramite il parametro ` --android-platform ` di `androiddeployqt`, che ha la precedenza su questa proprietà CMake.
set_target_properties(${target} PROPERTIES
QT_ANDROID_COMPILE_SDK_VERSION 37.0
)È valido anche il seguente formato:
set_target_properties(${target} PROPERTIES
QT_ANDROID_COMPILE_SDK_VERSION "android-37.0"
)A partire dal livello API 37, ogni piattaforma Android SDK presenta un livello API secondario, pertanto è necessario indicarlo per esteso. Ad esempio, utilizzare 37.0 anziché 37, che non corrisponde a nessuna piattaforma installata.
Vedi anche qt_android_generate_deployment_settings() e 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.