QT_ANDROID_COMPILE_SDK_VERSION

Android-Ziel-SDK-Version.

Diese Eigenschaft wurde in Qt 6.9 eingeführt.

Hinweis: Diese Eigenschaft wird nur verwendet, wenn die Android-Plattform als Ziel verwendet wird.

Gibt die Version des Android SDK an, mit der Ihre Anwendung kompiliert wird. Diese wird an build.gradle als compileSdkVersion weitergegeben. Dieser Wert kann über den Parameter --android-platform von androiddeployqt bereitgestellt werden, der Vorrang vor dieser CMake-Eigenschaft hat.

set_target_properties(${target} PROPERTIES
    QT_ANDROID_COMPILE_SDK_VERSION 35
)

Das folgende Format funktioniert ebenfalls:

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

Siehe auch qt_android_generate_deployment_settings() und 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.