androiddeployqt - Ant error: Buildfile: build.xml does not exist Build failed!
-
wrote on 21 Jun 2018, 17:36 last edited by MrKew
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!
-
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!
@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. -
wrote on 23 Jun 2018, 16:27 last edited by
Well I solved it by copying ant scripts from earlier version of SDK tools as mentioned here
Anyway thanks for reply
1/3