
The video below is a beginner's guide to using the Qt for Android toolchain, including the Qt Creator IDE, to get you started developing Qt for Android apps.
To learn the basics of getting started with Qt for Android, take the Getting Started with Qt for Android course in Qt Academy.
The rest of this page has more detailed getting started information.
To download and install Qt for Android, follow the instructions on the Getting Started with Qt page.
In order to develop with Qt for Android, you will need the following prerequisites:
The easiest way to manage the dependencies is by using Qt Creator's built-in Android development setup. When you first open Qt Creator after installing Qt for Android, you are asked if you want to run the Android setup wizard. This also sets up OpenSSL for Android.
If you already have an Android SDK setup, you don't need to run this wizard. Instead, in Qt Creator go to Preferences > Devices > Android and browse to your existing JDK and SDK paths. See common Android SDK paths. For more information, see Qt Creator: Set up Android development environment.
If you prefer to manually install the prerequisites please follow these next steps.
Qt for Android development requires JDK 17 or above, provided by any of the following supported distributions:
Install your preferred JDK. If your installer doesn't set the JAVA_HOME
environment variable that points to the location of the installed JDK, you can set it manually. For example on Linux:
sudo apt-get install openjdk-17-jdk export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
Or on macOS:
brew install openjdk@17 sudo ln -sfn "$(brew --prefix openjdk@17)/libexec/openjdk.jdk" \ "/Library/Java/JavaVirtualMachines/openjdk-17.jdk" export JAVA_HOME="$(/usr/libexec/java_home -v 17)"
Download the latest version of the Android SDK Command Line Tools for your operating system and extract it to the appropriate path as stated below.
The Android SDK is commonly installed by Qt Creator or Android Studio in the following locations:
Or use your OS's package manager, for example for macOS:
brew install android-commandlinetools
Make sure to install the SDK Platform, Platform Tools, and Build Tools. For Qt 6.8, use:
sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.1"
Qt 6.8 uses NDK 26.1.10909125, you can install it by running:
sdkmanager "ndk;26.1.10909125"
For example for macOS:
If you wish to use the Android Emulator, you can install it by running:
sdkmanager "emulator"
The default USB driver on Windows does not allow debugging using Android Debug Bridge (ADB) tool. You must install the additional USB driver provided by the extras Android SDK package. Install it by running the following:
sdkmanager.bat "extras;google;usb_driver"
The following dependencies are needed for using tools such as adb
or gdb
which can be used by Qt Creator:
sudo apt-get install libstdc++6 libncurses5
To run the Android emulator, the following dependencies are also necessary:
Now you can test your development setup by running the examples shipped with the Qt installation. For more information, see Mobile Examples.
To develop a simple application from scratch, see Qt Creator: Creating a Mobile Application.