Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Android app



  • Hi, i am trying to build android app in qt creator 4.3, qt version 5.6.
    But i am unable to build, every time i got the error
    "Buildfile: build.xml does not exist! Build failed" Building the android package failed!

    please let me know how can i build my test android app


  • Moderators

    @Richa
    seems like your QtCreator still uses Ant for building, but you should use gradle instead

    See this

    Gradle for building application packages for Android devices (APK). Gradle is delivered with Qt 5.9, and later. Because Gradle scripts are not delivered with Android SDK Tools since version 26.0.0, they are delivered with Qt 5.9 and 5.6.3.
    Note: Using Ant to build APKs is no longer supported.

    There is a checkbox in the QtCreator/Project settings to use gradle.
    (You may need to update QtCreator, i don't know when this setting was added.)



  • @Richa could you better describe your build environment? OS, how you installer Qt/Qt Creator., what and how Android SDK and NDK installed, etc.


  • Moderators

    @Richa QtCreator 4.3 is super old, I'm not sure it actually supports gradle.

    You should update, the current one is 4.6.1


Log in to reply