Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Deploying Felgo Apps to Android


Felgo 4 currently supports local development and deployment for the desktop platforms Windows, macOS & Linux and for the mobile platforms Android, iOS, Windows Phone & Windows Runtime.

This guide describes how to deploy Felgo apps & games to Android mobile devices.

Live Code Reloading on Android During Development

You can test your code on Android and other platforms without any additional installation, using the Felgo Developer App. Download the app on Android or iOS and connect it to your Felgo Live Server. You can find more info here.

Felgo Cloud Builds CI/CD Service for Android and other platforms

Boost your Qt and Felgo development with continuous integration and delivery for Qt and Felgo projects. As the only CI/CD exclusively for Felgo/Qt, it enables you to build and distribute apps with minimum effort and maximum speed.

Visit Felgo Cloud Builds.

You can find more info here.

Add Felgo Packages for Android Platform

The Felgo installer only installs the packages for your desktop system initially. You can add other packages via the Maintenance Tool. The Maintenance Tool is located at the installation directory of your Felgo SDK. The executable is called MaintenanceTool.

Run this application and select Add or remove components and then choose the platforms you want to add.

Android Deployment

With Felgo you can deploy your apps to Android devices and tablets right from the Felgo IDE, Qt Creator.

Felgo 4 supports deployment to Android v6.0 (API level 23) or later with architectures armv7a, arm64-v8a, x86 and x86_64.

watch video tutorial

Install Required Android Components

Android JDK

Make sure that you have the JDK (Java Development Kit) version 11 installed. If you don't have JDK 11 installed yet, you can download it here: Download JDK.

You will need the path to the JDK later to configure Qt Creator.

Android Studio (SDK Tools)

Download Android Studio

Download Android Studio which includes the Android SDK Tools for your operating system: Download Android Studio.

Install Android Studio

Follow the instructions of the installer to install Android Studio.

You will need the path to the Android SDK later to configure Qt Creator.

By default, Android Studio installs the SDK to your Users directory. You can find the location of the SDK using the SDK Manager of Android Studio: How to find the Android SDK path in Android Studio

Android NDK

Install NDK using Qt Creator

Start Qt Creator, open the Qt Creator Preferences, click "Devices" and select the "Android" tab. In case a specific Android NDK version is missing you will be prompted to install it. Follow the installation steps by accepting.

Install NDK manually

Download the Android NDK (Native Development Kit) for your operating system from one of the following links:

The currently recommended version is NDK 23c.

Extract the NDK to a folder of your choice. The folder path should not contain any white spaces. Recommended paths are C:\Development\Android-NDK (Windows) or /Development/Android-NDK (macOS, Linux).

You will need the path to the Android NDK later to configure Qt Creator.

Note: For Felgo 3 and Qt 5.15 the recommended version is NDK 21e. It can be downloaded here.

Install Android Packages

Open the Android SDK Manager of Android Studio, go to Appearance & Behavior -> System Settings -> Android SDK and select the SDK Tools Tab. Make sure to have the following components installed:

  • Android SDK Tools
  • Android SDK Platform-tools
  • Android SDK Build-tools (minimum version 31.0.0)
  • Android SDK Platform, android-31 (Android 12) or higher is mandatory for Google Play starting in August 2022
  • Android SDK Command-line Tools
  • Android Support Repository
  • Google Play Services
  • Google Repository
  • Google USB Driver (If you are using Windows)

After you selected the required components, click "Install Packages" and proceed with the installation. The download might take a while.

Note: If you have a newer version of the Android SDK Built-tools installed that is incompatible, you can set ANDROID_BUILD_TOOLS_REVISION = 31.0.0 in your *.pro file to explicitly specify the version.

Configure Qt Creator

When the download has finished, start Qt Creator. Open the Qt Creator Preferences, click "Devices" and select the "Android" tab. Now, set the locations of your JDK, Android SDK and Android NDK folders. Click "OK" when you're done.

Congratulations, you successfully set up the Android SDK on your computer! Continue with the next section to learn how to deploy your app to your device.

Build Your App or Game for Android

  1. Add the Android target to your project:
    1. When creating a new project make sure to select one of the Android architecture targets (named Android for XYZ), depending on your needs.

    2. If you want to build for your existing project you can add the Android targets after opening your project in Qt Creator: select the left Projects tab and double-click the Android kit in the tree view on the left.

  2. Now select your Android target from the build menu in the bottom left corner of Qt Creator and hit the build and run button, after building your app a dialog appears where you can select your connected Android device.

Official Android Guides

For further information please also have a look at:

Publish Your App or Game on Android

After you tested your app on real device(s), you can continue and publish your app in the app stores. See Publishing Felgo Games & Apps how to do this.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded