QT_ANDROID_COMPILE_SDK_VERSION
Android target SDK version.
This property was introduced in Qt 6.9.
Note: This property is used only if targeting the Android platform.
Specifies the version of the Android SDK against which your application is compiled. This is propagated to build.gradle
as compileSdkVersion
. This value can be provided via androiddeployqt's --android-platform
parameter which takes precedence over this CMake property.
set_target_properties(${target} PROPERTIES QT_ANDROID_COMPILE_SDK_VERSION 35 )
The following format also works:
set_target_properties(${target} PROPERTIES QT_ANDROID_COMPILE_SDK_VERSION "android-35" )
See also qt_android_generate_deployment_settings() and QT_ANDROID_TARGET_SDK_VERSION.
© 2024 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.