Skip to main content
Participant
July 15, 2013
Question

Help packaging an android apk through command line

  • July 15, 2013
  • 2 replies
  • 449 views

Hello everyone.  I've recently developed an app that is near the release deadline and I've ran into the problem of low resolutions icons.  All of the troubleshooting I've done has claimed I'll need to manually package the app through the command line to do this.  I have never done this before so I'm having some trouble. 

I've downloaded all of the required files I believe and have reached the correct bin folder, I'm completely clueless as to what syntax I need to type in from this point though.  I've gotten as far as "adt -package" which then outputs that I'm missing additional information, but as I said, I haven't used command promt much and I have no idea how to format the rest of the information I need to put in or how to attach my current app.xml file to it.

Any help would be appreciated.

Edit: Nevermind everyone.  After a lot  more time spent researching I've managed to piece together how to do it and actually understand it as well.

This topic has been closed for replies.

2 replies

Adobe Employee
July 16, 2013

Hi,

Here is the command to package android apk through command line;

<adt-path> -package -target <target-option e.g. apk, apk-debug etc> -storetype pkcs12 -keystore <your certificate> -storepass <password> name.apk app.xml name.swf assets

Please run adt -help on terminal or cmd if you need any help regarding targets or packaging command. adt is available at you sdk/bin/adt folder.

Also, you can see the page http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128cdca935b-8000.html for more details.

Hope this will help.

Regards,

Nimit

Colin Holgate
Inspiring
July 15, 2013

When you do a publish from Flash, at the point that ADT kicks in the command line that it is going to use is traced to the system log. Not sure how you view that on Windows, but on Mac you can open Console and look at the system.log entry.

So, if you do your usual publish from Flash you can get the entire ADT line from that log. It may be a very long line! After doing a successful publish with the 96 pixel icon missing, you then do the same command from the command line, after first editing the text to include the extra icon.