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. [SOLVED] Problems to build for Android

[SOLVED] Problems to build for Android

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 1.4k 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.
  • guidupasG Offline
    guidupasG Offline
    guidupas
    wrote on last edited by guidupas
    #1

    Hello all.

    I am having a problem to build the app for Android.

    I am using OSX Yosemite, Qt 5.4.2, the last version of Android SDK, Android NDK and Ant and Java 8 update 45

    After configuring everything it was building normally. When I entered in Projects > Build Android APK and clicked in Create Template all my Android Projects stop working. It returns this message:

    BUILD FAILED
    /Users/guilhermedupas/AndroidTools/android-sdk-macosx/tools/ant/build.xml:649: The following error occurred while executing this line:
    /Users/guilhermedupas/AndroidTools/android-sdk-macosx/tools/ant/build.xml:655: Execute failed: java.io.IOException: Cannot run program "/Users/guilhermedupas/Dropbox/Desenvolvimento/Qt/ProjetosQt/build-FinanceC-Mobile-Android_for_x86_GCC_4_9_Qt_5_4_2-Debug/android-build/${aidl}": error=2, No such file or directory
    ...
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
    Caused by: java.io.IOException: error=2, No such file or directory
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    ...

    The process "/Users/guilhermedupas/Qt5.4.2/5.4/android_x86/bin/androiddeployqt" exited with code 14.
    Error while building/deploying project FinanceC-Mobile (kit: Android for x86 (GCC 4.9, Qt 5.4.2))
    When executing step "Build Android APK"

    Att.
    Guilherme Cortada Dupas

    1 Reply Last reply
    0
    • Cold_DistanceC Offline
      Cold_DistanceC Offline
      Cold_Distance
      wrote on last edited by
      #2

      Is your compilation error equal than this? If so, you are not the only one who have the problem, and it seems that the root is not you operating system like I've thought in the beginning, because I use Linux and the author of the other thread uses Windows.

      It seems that an update of Android SDK broke the compatibility with Qt, and I asked to Google by the situation, but it doesn't want to know anything about this topic.

      It seems we have to wait for an update in Qt to solve the problem.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sk2212
        wrote on last edited by
        #3

        Yes...running into same issue after updating SDK tools. First I think it was a problem about wrong set env paths. But it seems that something is really broken.

        After updating to latest SDK Tools 24.3.3 the problem is solved. Did not know what they have changed but also in Release Notes there is a note to update because of build problems.

        guidupasG 1 Reply Last reply
        0
        • S sk2212

          Yes...running into same issue after updating SDK tools. First I think it was a problem about wrong set env paths. But it seems that something is really broken.

          After updating to latest SDK Tools 24.3.3 the problem is solved. Did not know what they have changed but also in Release Notes there is a note to update because of build problems.

          guidupasG Offline
          guidupasG Offline
          guidupas
          wrote on last edited by
          #4

          @sk2212 , @Cold_Distance

          Thanks for the help. Thats is correct, updating the SDK Tools to 24.3.3 solved the problem.

          Att.
          Guilherme Cortada Dupas

          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