Android Packaging Error for Necessitas



  • 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



  • Hi,

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

    If anybody knows, please guide...

    Thanks...



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



  • 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



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


Log in to reply
 

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