Deploying V-Play Games & Apps to Android

Overview

V-Play 2 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 V-Play games & apps to Android mobile devices.

Live Code Reloading on Android During Development

You can test your code on Android without any additional installation, using the V-Play Live Scripting app. Download the app on Android0 or iOS and connect it to your V-Play Live Server. You can find more info here.

Add V-Play Packages for Android Platform

The V-Play 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 V-Play SDK. The executable is called SDKMaintenanceTool.

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

Android Deployment

With V-Play you can deploy your games to Android devices and tablets right from the V-Play IDE, Qt Creator.

V-Play 2 supports deployment to Android v4.1 (API level 16) or later with architectures armv7a & x86.

watch video tutorial

Prerequisites

This guide assumes that you already have the JDK (Java Development Kit) installed. If you don't have the JDK installed yet, you can download it here. On Linux, you can also use OpenJDK.

Install Required Android Components

Android SDK Tools

Download SDK Tools

Download the SDK Tools for your operating system from one of the following links:

Install SDK Tools

Extract the SDK Tools to a folder of your choice. The folder path should not contain any white spaces. Recommended paths are C:\Development\Android-SDK (Windows) or /Development/Android-SDK (macOS, Linux). Please remember this folder, as we will need it later.

Android NDK

Download NDK

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

Install NDK

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). Please remember this folder too, as we will need it later.

Install Android Packages

Remember the folder where you installed the Android SDK in the previous steps? Good. Open it, and navigate to the tools folder. Now, double-click the "android" icon. A new Window will show up, in which you should select at least the following components:

  • Android SDK Tools
  • Android SDK Platform-tools
  • Android SDK Build-tools
  • Android 4.1 (API 16) and above, recommended Android 7.1.1 (API 25)
  • 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.

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.

Please also make sure that your Qt Creator configuration uses the Gradle Build System.

Congratulations, you successfully set up the Android SDK on your computer! Continue with the next section to learn how to deploy your app or game 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 game 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 Game on Android

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

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support