Building QT Application for android device



  • Hi, I have a problem when I try to connect my application for android device:

    Android build platform: android-25
    Install to device: No
    Buildfile: build.xml does not exist!
    Build failed
    Building the android package failed!

    Can you help me please!!


  • Moderators

    @jiji I guess you mean compile/build not connect?
    The information you provided isn't enough to say what is wrong. Please provide the whole build log.



  • Generating Android Package
    Input file: /home/qt/Documents/projectQT/build-projectQT-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_f42918-Debug/android-libprojectQT.so-deployment-settings.json
    Output directory: /home/qt/Documents/projectQT/build-projectQT-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_f42918-Debug/android-build/
    Application binary: /home/qt/Documents/projectQT/build-projectQT-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_f42918-Debug/libprojectQT.so
    Android build platform: android-25
    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.
    12:24:30: Le processus "/home/qt/Qtinstall/5.8/android_armv7/bin/androiddeployqt" s'est terminé avec le code 14.
    Erreur lors de la compilation/déploiement du projet projectQT (kit : Android for armeabi-v7a (GCC 4.9, Qt 5.8.0))
    When executing step "Build Android APK"
    12:24:30: Temps écoulé : 00:08.


  • Moderators

    @jiji Are you building using Ant? If so switch to Gradle (you can do it in your project settings).



  • @jsulm ,I switch to Gradle, but nothing changed.
    Those are my settings:
    0_1495180101934_switchToGradle.png


Log in to reply
 

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