qt_android_compile_sdk_version
Android 目标 SDK 版本。
该属性在 Qt 6.9 中引入。
注意: 该属性仅用于 Android 平台。
指定编译应用程序所依据的 Android SDK 版本。该版本将作为compileSdkVersion
传播到build.gradle
。该值可通过androiddeployqt 的--android-platform
参数提供,该参数优先于 CMake 属性。
set_target_properties(${target} PROPERTIES QT_ANDROID_COMPILE_SDK_VERSION 35 )
以下格式也可以使用:
set_target_properties(${target} PROPERTIES QT_ANDROID_COMPILE_SDK_VERSION "android-35" )
另请参阅 qt_android_generate_deployment_settings()和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.