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. Android Packaging Error for Necessitas

Android Packaging Error for Necessitas

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 4 Posters 5.2k 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
    Catalyst
    wrote on last edited by
    #1

    Hello everyone,

    This is my first time posting here, so if this post seems like it should be in a different section feel free to let me know =).

    I am trying to run a simple application for Android using Necessitas. The application does not have any functionality; all it does is display (or is supposed to display) a button on the screen. I am just doing this as a test to get a feel for Necessitas before I start any serious development. When I hit the 'run' button Necessitas begins to build my application, but then stops and displays the following error message:

    Packaging Error: Command 'C:\Users\Catalyst\necessitas/apache-ant-1.8.2/bin/ant.bat clean debug' failed.Exit code: 1
    Error while building project atest2 (target: Android)
    When executing build step 'Packaging for Android'

    A search on Google did not produce any instructions to help remedy my issue. Please help me! I have a lot of great ideas for apps that I would like to start developing ASAP!

    -Catalyst

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rajeevsahu
      wrote on last edited by
      #2

      Hi,

      I am also getting this error, how to resolve this?

      If anybody knows, please guide...

      Thanks...

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rajeevsahu
        wrote on last edited by
        #3

        After searching in the google I found that tools.jar should be present. And I have this file in the path: C:\Program Files\Java\jdk1.6.0_18\lib

        But still it is not installing in Android HTC Hero device. What's the problem?

        1 Reply Last reply
        0
        • F Offline
          F Offline
          fredmaria
          wrote on last edited by
          #4

          Hi,

          I had the same issue after having changed some of the project setting without doing care.
          Finally I found the answer on Leonard's blog:

          http://sheeeng.blogspot.com/2011/09/packaging-error-command-usrbinant-debug.html

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Dolphin
            wrote on last edited by
            #5

            I am having exactly the same issue but changing the Android target SDK to the latest version has not fixed it. Any further thoughts?

            SOLVED!
            copy toos.jar from ..\java\jdk1.7.0_0\lib to ..\java\jre7

            wooop!

            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