December 4, 2011

Catalyst Catalyst
Lab Rat
1 posts

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

4 replies

April 3, 2012

rajeevsahu rajeevsahu
Lab Rat
3 posts

Hi,

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

If anybody knows, please guide…

Thanks…

April 3, 2012

rajeevsahu rajeevsahu
Lab Rat
3 posts

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?

December 20, 2012

fredmaria fredmaria
Lab Rat
1 posts

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

January 4, 2013

Dolphin Dolphin
Hobby Entomologist
123 posts

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!

 
  ‹‹ [Moved] QT SDK 4.7 not working (installation is not sucessful)      Problem with building ORACLE database ››

You must log in to post a reply. Not a member yet? Register here!