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 37.0
)

다음 형식도 사용할 수 있습니다:

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

API 레벨 37부터는 모든 Android SDK 플랫폼에 마이너 API 레벨이 포함되므로, 이름을 완전히 표기해야 합니다. 예를 들어, 설치된 플랫폼과 일치하지 않는 37 대신 37.0 을 사용하십시오.

qt_android_generate_deployment_settings() 및 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.