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. Android SDK error when "executing step "Build Android APK""

Android SDK error when "executing step "Build Android APK""

Scheduled Pinned Locked Moved Solved Mobile and Embedded
android sdk
4 Posts 2 Posters 4.2k Views
  • 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.
  • D Offline
    D Offline
    daniel_j
    wrote on last edited by daniel_j
    #1

    I'm having my first shot at Android development using Qt and have run into a wall or two while setting up my environment.
    I have downloaded the required packages as described here http://doc.qt.io/qt-5/androidgs.html and have updated the SDK.
    When attempting to build and run an application on either a virtual or physical device I get the following error:

    BUILD FAILED
    /home/daniel_j/compiled/androidsdk/android-sdk-linux/tools/ant/build.xml:888: The following error occurred while executing this line:
    /home/daniel_j/compiled/androidsdk/android-sdk-linux/tools/ant/build.xml:890: The following error occurred while executing this line:
    /home/daniel_j/compiled/androidsdk/android-sdk-linux/tools/ant/build.xml:902: The following error occurred while executing this line:
    /home/daniel_j/compiled/androidsdk/android-sdk-linux/tools/ant/build.xml:283: null returned: 1
    
    Total time: 1 second
    Building the android package failed!
      -- For more information, run this command with --verbose.
    10:29:47: The process "/home/daniel_j/compiled/qtdev/5.7/android_x86/bin/androiddeployqt" exited with code 14.
    Error while building/deploying project untitled (kit: Android for x86 (GCC 4.9, Qt 5.7.0))
    When executing step "Build Android APK"
    

    I cannot see a particular issue listed in the error.

    Whether related or not I also have this issue with the NDK:

    The GDB in the NDK appears to have broken python support.
    

    It attempts to link me to a fixed version, however I am unable to download it (internal server error). http://download.qt.io/official_releases/gdb/
    Is this particular issue related to the one above?
    Thanks for your time.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      I would check two things:

      1. NDK version. If you downloaded the latest (v 12 something), you could try downgrading it to 11, as I think the latest has had some issues. (I found that after changing the NDK, QtCreator is usually confused so you may want to reinstall the Qt for Android SDK)
      2. Your kit. If you are making software for a regular Android device, use a kit that has ARMv7 in its name
      1 Reply Last reply
      0
      • D Offline
        D Offline
        daniel_j
        wrote on last edited by
        #3

        Thanks for the suggestions!
        Sadly I still get the same results with older NDK versions.
        I have been trying two kits, one for my device and the other a virtual device, neither work - both give the same error.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          daniel_j
          wrote on last edited by
          #4

          It seems installing JDK 8 solved thei ssue at hand, oen step closer!

          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