Skip to main content
Participant
March 24, 2011
Question

Converting air application to .apk file

  • March 24, 2011
  • 1 reply
  • 9659 views

hi

I am trying to make the application in flash builder by choosing the flex project.

Tried to convert swf file to .apk file . The procedure followed is

1. added supportedProfile to the xml

2. created the pfx file (test.pfx) with the password test

3. assigned the certificate to the swf

4. executed this command: adt -package -target apk-emulator  -storetype pkcs12 –keystore test.pfx pulsr.apk pulsr-app.xml pulsr.swf

5. password prompt appears, typed in test

6. packaging failed “The key could not be obtained. You may need to  use the -keystore argument with the specified keystore type.”

This is the error i got please anyone help me with this..........

Thanks in advance...

This topic has been closed for replies.

1 reply

Adobe Employee
March 25, 2011

You can create an APK package directly from an existing AIR or AIRI file:

adt -target apk -storetype pkcs12 -keystore ../codesign.p12 myApp.apk myApp.air

(PS:-The AIR file must use the AIR 2.5 (or later) namespace in the application descriptor file.)

You seem to using the wrong the keystore argument.

-Varun

nithya26Author
Participant
March 28, 2011

hi

thanx for responding me.But I have used Air 2.5 in the application descriptor file and followed the above said procedure

but still i am getting the same error...............

Thnx...........

Participant
March 30, 2011

Im also getting same error while converting air application to .apk file

Error : "The key could not be obtained. You may need to use the - key store argument with the specific keystore type."

Can anyone help me...........