Skip to main content
jfweber
Inspiring
October 10, 2011
Question

ADT - problem converting AIR to APK (file disappears)

  • October 10, 2011
  • 7 replies
  • 2113 views

I run the following command @windos.commandline to convert an AIR file to an APK for usage on Android:

adt –package -target apk -storetype pkcs12 -keystore cert.p12 myApp.air myApp.xml .

All mandatory files are inside the same folder where I run the command from and I do not get any error at all.

After I enter the password for the certificate I can see that a temp file is created in working directory ("apk6668400655392463515.tmp" name is similar to this one I copied just from this process' last try to convert).

When the converting has ended the temp file is removed but no other files appears - either the file is located somewhere else afte running the adt packaging process or it is simply removed for unknown reason; please let me know where I could check for the problem.

ADT version is 3.0.0.4080

AIR is compiled using Flash CS5

in myApp.xml I have set the version to 2.7:

"<application xmlns="http://ns.adobe.com/air/application/2.7">"

This topic has been closed for replies.

7 replies

Colin Holgate
Inspiring
October 10, 2011

When you make an AIR app, a swf is created. For packaging to a mobile app you would use the swf in the command line, not the air file.

jfweber
jfweberAuthor
Inspiring
October 10, 2011

Thanks for your advice!

Do I assume correctly that all files mentioned behind myApp.apk are zipped inside the apk?

Colin Holgate
Inspiring
October 10, 2011

That's how I think it works. Inside the apk is an assets folder, and inside that would be those other files.

I still think you should not include the air file.

jfweber
jfweberAuthor
Inspiring
October 10, 2011

Issue found, problem was in the package command where output file was missing

adt –package -target apk -storetype pkcs12 -keystore cert.p12 myApp.air myApp.xml .

->

adt –package -target apk -storetype pkcs12 -keystore cert.p12 myApp.apk myApp.xml myApp.air myApp.swf

myApp.swf is referenced in description xmls content