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. Packaging Error: Command 'ant clean debug' failed.Exit code: 1
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 4 Posters 11.0k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    claughe
    wrote on 18 May 2013, 10:39 last edited by
    #1

    I have manage to compile Qt5 for android and now i try to run a simple "Hello world" but i have this error

    error: [install_target] Error 126 (ignored)
    error: Packaging Error: Command 'ant clean debug' failed.Exit code: 1

    Ps:
    -The os is Mac OS X Lion 10.7.5
    -java version "1.7.0_21"
    -android ndk android-ndk-r8e-ma-darwin-x86.7z

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Gennon
      wrote on 22 Jun 2013, 21:19 last edited by
      #2

      I have the exact same error, but running on Windows 8 with the latest Android NDK and SDK. I am using Qt 5.1 RC1 and Qt Creator 2.7.2.

      Compile Output:

      @23:01:57: Running steps for project Test...
      23:01:57: Configuration unchanged, skipping qmake step.
      23:01:57: Starting: "C:\Qt\Qt5.1.0\Tools\mingw48_32\bin\mingw32-make.exe"
      mingw32-make: Nothing to be done for 'first'.
      23:01:58: The process "C:\Qt\Qt5.1.0\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
      23:01:58: Starting: "C:\Qt\Qt5.1.0\Tools\mingw48_32\bin\mingw32-make.exe" INSTALL_ROOT="C:/Qt/Projects/Test/android" install
      cp -f -R C:/Qt/Projects/Test/qml/Test C:/Qt/Projects/Test/android/assets/qml/
      cp -f "libTest.so" "C:/Qt/Projects/Test/android/libs/armeabi-v7a/libTest.so"
      23:01:58: The process "C:\Qt\Qt5.1.0\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
      23:01:58: Copy Qt app & libs to Android package ...
      23:01:59: Creating package file ...
      23:01:59: Package deploy: Running command 'D:/android/ant/bin/ant.bat clean debug'.
      Buildfile: build.xml does not exist!
      Build failed
      Packaging Error: Command 'D:/android/ant/bin/ant.bat clean debug' failed.Exit code: 1
      Error while building/deploying project Test (kit: Android for arm (GCC 4.4.3, Qt 5.1.0))
      When executing step 'Packaging for Android'
      23:01:59: Elapsed time: 00:02.@

      I have tried looking for an answer to this, but nothing seems to work. Did not see any Qt Bugs either.

      /Gen

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gennon
        wrote on 22 Jun 2013, 21:40 last edited by
        #3

        Ok, somehow I fixed it, don't actually know how but I think restarting the computer a few times as well as the Qt Creator helped.

        I noticed that I did not have any choice of which SDK to use in the drop down in the Projects->Run->Package configurations->Manifest dialog:

        http://doc-snapshot.qt-project.org/qtcreator-2.8/creator-deploying-android.html#specifying-package-data

        After a few restarts I noticed that Qt Creator had discovered the SDK's I had installed (the selected item was blank, so I had to press it and select a SDK from the drop down list, something I could not do earlier).

        When I did that I got a step further, but still had a problem. The ant tool would not allow me to build an android application with a Package name that was ".Test". My project was called Test, so the Package Name was automatically called ".Test".

        I tried to change that also in the Manifest Dialog: http://doc-snapshot.qt-project.org/qtcreator-2.8/creator-deploying-android.html#specifying-package-data

        But I could not change that value in Qt Creator in that dialog. This has to be a bug!!

        Anyway, I just opened the AndroidManifest.xml file in Qt Creator (it is in the Other files -> android folder) and changed the package name to "com.mycompany.test" and it worked!!

        I got it deployed to my device (Galaxy S3).

        I hope that anyone else having this problem might get some help from my frustration. Enjoy!

        /Gen

        1 Reply Last reply
        0
        • M Offline
          M Offline
          medeus
          wrote on 10 Dec 2013, 21:51 last edited by
          #4

          just delete Android SDK Build-tools revision 19 and install prev version 18.1.1. Now it's working!

          1 Reply Last reply
          0
          • S Offline
            S Offline
            serngawy
            wrote on 6 Mar 2014, 16:19 last edited by
            #5

            I can believe that to fix this issue, I just need to re-name my package as "com.whatnever.myAPP", thanks Genonn

            1 Reply Last reply
            0

            • Login

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