이 페이지에서

안드로이드 패키지 생성

androiddeployqt 도구의 설정을 지정하려면 Projects > Build Settings > Build Android APK 으로 이동하여 Details 을 선택합니다.

프로젝트의 빌드 설정 탭에서 안드로이드 APK 빌드 단계

androiddeployqt 도구는 설정에 따라 APK를 생성합니다. 사용 가능한 옵션에 대한 자세한 내용은 androiddeployqt를 참조하세요.

컴파일 출력에서 androiddeployqt 도구가 수행하는 작업에 대한 정보를 볼 수 있습니다. 자세한 정보를 보려면 Verbose output 을 선택합니다.

Add debug server 을 선택하여 디버그 서버 바이너리를 패키지에 포함합니다.

API 레벨 선택

Android build platform SDK 필드에서 애플리케이션을 빌드하는 데 사용할 API 레벨을 선택합니다. 일반적으로 사용 가능한 가장 높은 API 레벨을 선택해야 합니다.

일반적으로 빌드할 때 가장 높은 버전의 Android SDK 빌드 도구를 사용해야 합니다. 필요한 경우 Android build-tools version 필드에서 다른 버전을 선택합니다.

AAB 빌드

로컬에서 애플리케이션을 테스트하려면 Qt Creator 에서 디바이스에 패키지를 설치하고 실행할 수 있으므로 APK 형식을 사용합니다. Google Play 스토어에 배포하려면 Build Android App Bundle (*.aab) 을 선택하여 AAB를 만듭니다.

CMake로 빌드하는 경우 CMake 섹션의 Initial Configuration 에서 선택한 ABI를 볼 수 있습니다. ANDROID_ABI 키의 값으로 추가 ABI를 설정할 수 있습니다:

CAAB 구축을 위한 설정

Qbs 또는 qmake로 빌드하는 경우 Build StepsABIs 필드에서 ABI를 선택할 수 있습니다:

AAB 구축을 위한 qmake 설정

AAR 빌드

Build Steps 섹션에서 AAR 대상을 선택합니다.

AAR 대상 선택

방법도참조하세요 :Android용 개발Android용 개발을 참조하세요.

Copyright © The Qt Company Ltd. and other contributors. 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.