Can't build / run Qt android apps

  • Hey guys. I decided to explore the android offerings of Qt tonight I followed the Qt 5.8 installation guide but am hitting errors when building / running. It seems to build all the way to the end then fails.

    Warning: Android platform 'android--1' does not exist in SDK.
    Generating Android Package
      Input file: /home/aaron/Dev/github/build-Qt_Box2D_Widget_Example-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/
      Output directory: /home/aaron/Dev/github/build-Qt_Box2D_Widget_Example-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/android-build/
      Application binary: /home/aaron/Dev/github/build-Qt_Box2D_Widget_Example-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/
      Android build platform: android--1
      Install to device: No
    Buildfile: build.xml does not exist!
    Build failed
    Building the android package failed!
      -- For more information, run this command with --verbose.
    00:48:40: The process "/home/aaron/Qt/5.8/android_armv7/bin/androiddeployqt" exited with code 14.
    Error while building/deploying project Qt_Box2D_Widget_Example (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.8.0))
    When executing step "Build Android APK"
    00:48:40: Elapsed time: 00:20.

    I'm getting this same error on both Windows and Linux, and have even tried the latest 5.9 build. I am also unable to create AVDs due to the following error:

    cannot create new AVD. No sufficiently recent Android SDK available. Install an SDK of at least API version 0.

    I have installed the latest android studio along with full installs of all the SDK platforms from version 4.1-7.1.1.

    Does anyone have any idea what's going on or how to fix it?

  • Qt Champions 2016

    @aatwo are you using the recommended versions ?
    SDK 25.2.5
    NDK r10e
    see also:

  • Hey thanks a ton for that bit of info. I didn't see anything regarding these recommended versions listed anywhere when googling or reading the Qt documentation ( and

    So yeh installing the Android SDK r25.2.5 and the NDK r10e got it working!


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.