Qt for Android CMake Configuration

This page lists information regarding CMake and Qt for Android platform support.

Variables affecting the build process

This is a list of CMake variables or properties that affect the build process including Gradle configuration:

QT_ANDROID_ABIS

List of ABIs that packages of a single target are built for

QT_ANDROID_ABIS

List of ABIs that the project packages are built for

QT_ANDROID_BUILD_ALL_ABIS

Enables building multi-ABI packages using the autodetected Qt for Android SDK list

QT_ANDROID_DEPLOYMENT_DEPENDENCIES

Overrides the Qt dependencies added to the target's deployment

QT_ANDROID_DEPLOYMENT_SETTINGS_FILE

Specifies the location of a target's generated deployment settings file

QT_ANDROID_DEPLOYMENT_TYPE

Forces or disables release package signing regardless of the build type

QT_ANDROID_EXTRA_LIBS

Extra libraries to deploy with the target

QT_ANDROID_EXTRA_PLUGINS

Extra Qt plugins to deploy with the target

QT_ANDROID_GENERATE_JAVA_QTQUICKVIEW_CONTENTS

Enables the generation of QtQuickViewContent-based classes

QT_ANDROID_MIN_SDK_VERSION

Minimum Android SDK version

QT_ANDROID_MULTI_ABI_FORWARD_VARS

Allows to share CMake variables in multi-ABI builds

QT_ANDROID_NO_DEPLOY_QT_LIBS

Whether Qt shared libraries are packaged in the APK on Android

QT_ANDROID_PACKAGE_NAME

App's package name

QT_ANDROID_PACKAGE_SOURCE_DIR

Path to a custom Android package template

QT_ANDROID_SDK_BUILD_TOOLS_REVISION

Revision of Android build tools to use

QT_ANDROID_SIGN_AAB

Signs the .aab package with the specified keystore, alias, and store password

QT_ANDROID_SIGN_APK

Signs the package with the specified keystore, alias, and store password

QT_ANDROID_SYSTEM_LIBS_PREFIX

Specifies the location of Qt libraries on the target device

QT_ANDROID_TARGET_SDK_VERSION

Android target SDK version

QT_QML_GENERATE_ANDROID_JAVA_CLASS

Marks a QML file for Java code generation

Variables affecting the Android app manifest file

This is a list of CMake variables or properties that can set some of the Android Manifest's configuration directly from CMake without having to manually set them in the manifest.

QT_ANDROID_APPLICATION_ARGUMENTS

List of arguments to pass to Android applications

QT_ANDROID_VERSION_CODE

Internal Android app version

QT_ANDROID_VERSION_NAME

Human-readable Android app version