Packaging Error: Command '/usr/bin/ant clean debug' failed.Exit code: 1



  • Hi.. I'm trying to start a new app for android and when I test thebasic example of my app, the message that I receive is:

    Packaging Error: Command '/usr/bin/ant clean debug' failed.Exit code: 1

    I have installed ant and its version is 1.9.2, so, it's not an old version...

    what I'm I supose to do??

    best regards

    freddy


  • Moderators

    Hi,

    Is openjdk-6 or 7 installed on your system ? Or is it set correctly in QtCreator ?
    To check goto to Tools > Option > Android > JDK Location
    It should be something like "/usr/lib/jvm/java-6-openjdk-i386"



  • I had this problem with older versions of Qt Creator although everything was set up correctly. Which one are you using?



  • well... firstone, I've the last version of QtCreator (QtCreator 2.8.1) and I've the openjdk-7 and this is the string in the JDK field: /usr/lib/jvm/java-7-openjdk-amd64

    best regards...

    Freddy



  • I also had this issue irregularly. When nothing helped, I just deleted the project, but kept the source and header files of course. Then I completely recreated it and that fixed it. I know that this is a dirty method, but nothing else helped in that case.


Log in to reply
 

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