Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Can't build / run Qt android apps
Qt 6.11 is out! See what's new in the release blog

Can't build / run Qt android apps

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aatwo
    wrote on last edited by
    #1

    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/android-libQt_Box2D_SideScroller.so-deployment-settings.json
      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/libQt_Box2D_SideScroller.so
      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?

    ekkescornerE 1 Reply Last reply
    0
    • A aatwo

      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/android-libQt_Box2D_SideScroller.so-deployment-settings.json
        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/libQt_Box2D_SideScroller.so
        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?

      ekkescornerE Offline
      ekkescornerE Offline
      ekkescorner
      Qt Champions 2016
      wrote on last edited by
      #2

      @aatwo are you using the recommended versions ?
      SDK 25.2.5
      NDK r10e
      see also: https://appbus.wordpress.com/2016/04/04/prepare-for-android-development/

      ekke ... Qt Champion 2016 | 2024 ... mobile business apps

      1 Reply Last reply
      2
      • A Offline
        A Offline
        aatwo
        wrote on last edited by
        #3

        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 (http://doc.qt.io/qt-5/androidgs.html and http://doc.qt.io/qt-5/android-support.html).

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

        Thanks!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved