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



  • 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!
    

  • Moderators

    @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.



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

    Anyway thanks for reply


Log in to reply
 

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