Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. androiddeployqt - Ant error: Buildfile: build.xml does not exist Build failed!

androiddeployqt - Ant error: Buildfile: build.xml does not exist Build failed!

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 1.8k 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.
  • M Offline
    M Offline
    MrKew
    wrote on 21 Jun 2018, 17:36 last edited by MrKew
    #1

    Hi,
    When I run androiddeployqt I get an error: "Buildfile: build.xml does not exist Build failed!"

    I found multiple threads on forums, but all of them solve it by switchnig to gradle instead of ant.

    Is there any solution since this option is not available in new version of Qt Creator?

    End of output:

    Pregenerating entry list for assets file engine.
    Running Android tool to create package definition.
      -- Command: C:/android-sdk/tools/android.bat update project --path D:/Android2-Build/ --target android-28 --name QtApp
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    Building Android package using ant.
    Using ant: C:\apache-ant-1.10.3\bin/ant.bat
    Buildfile: build.xml does not existBuild failed!
    
    Building the android package failed!
    
    R 1 Reply Last reply 22 Jun 2018, 06:50
    0
    • M MrKew
      21 Jun 2018, 17:36

      Hi,
      When I run androiddeployqt I get an error: "Buildfile: build.xml does not exist Build failed!"

      I found multiple threads on forums, but all of them solve it by switchnig to gradle instead of ant.

      Is there any solution since this option is not available in new version of Qt Creator?

      End of output:

      Pregenerating entry list for assets file engine.
      Running Android tool to create package definition.
        -- Command: C:/android-sdk/tools/android.bat update project --path D:/Android2-Build/ --target android-28 --name QtApp
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      The process tried to write to a nonexistent pipe.
      Building Android package using ant.
      Using ant: C:\apache-ant-1.10.3\bin/ant.bat
      Buildfile: build.xml does not existBuild failed!
      
      Building the android package failed!
      
      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 22 Jun 2018, 06:50 last edited by
      #2

      @MrKew said in androiddeployqt - Ant error: Buildfile: build.xml does not exist Build failed!:

      Is there any solution since this option is not available in new version of Qt Creator?

      if you target a newer Android API version you must switch to gradle, there is no way around it, since it was deprecated/removed.
      I don't know with what version that was introduced though.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • M Offline
        M Offline
        MrKew
        wrote on 23 Jun 2018, 16:27 last edited by
        #3

        Well I solved it by copying ant scripts from earlier version of SDK tools as mentioned here

        Anyway thanks for reply

        1 Reply Last reply
        0

        1/3

        21 Jun 2018, 17:36

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved