Results 1 to 2 of 2

Thread: Problems to build for Android

  1. #1
    Join Date
    Feb 2014
    Posts
    94
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Problems to build for Android

    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"

  2. #2
    Join Date
    Feb 2014
    Posts
    94
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problems to build for Android

    Updating the SDK Tools to 24.3.3 solved the problem. Something was really broken in the previous SDK Tools version.

Similar Threads

  1. Replies: 0
    Last Post: 30th May 2015, 10:45
  2. Errors to build app in iOS and Android
    By guidupas in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 13th May 2015, 18:29
  3. How to build MySQL plugin for android under windows?
    By Baso in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 13th April 2014, 23:29
  4. Build Qt for Android with MinGW
    By cyberduck in forum Installation and Deployment
    Replies: 2
    Last Post: 17th March 2014, 08:42
  5. Qt for Android: Character Encoding problems.
    By HeReSY in forum Qt Programming
    Replies: 2
    Last Post: 18th March 2012, 22:48

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.