Skip to main content
Known Participant
June 12, 2014
Answered

Not a valid AIRI or AIR file

  • June 12, 2014
  • 3 replies
  • 1544 views

Trying this: adt -package -keystore HelloWorld.p12 -storetype pkcs12 -target bundle HelloWorld.app HelloWorld.xml

Gives me the error:

File /Users/cameron/HelloWorld/HelloWorld.xml is not a valid AIRI or AIR file

And here is the contents of that XML file:

<?xml version="1.0" encoding="UTF-8"?>

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

    <id>examples.html.HelloWorld</id>

    <versionNumber>0.1</versionNumber>

    <filename>HelloWorld</filename>

    <initialWindow>

  <title>Hello World</title>

  <content>HelloWorld.html</content>

  <visible>false</visible>

  <minimizable>true</minimizable>

  <maximizable>false</maximizable>

  <resizable>false</resizable>

  <width>800</width>

  <height>600</height>

  <systemChrome>none</systemChrome>

  <transparent>true</transparent>

    </initialWindow>

</application>

What's the issue?

Running adt -version gives:

13.0.0.83

so the version is correct... and the XML file looks okay to me. Any ideas?

This topic has been closed for replies.
Correct answer

You have an incorrect - before package which was causing errors.

However even fixing that and being asked the password for the certificate BOTH error with:

Unknown or invalid signature algorithm.


Here is the link to the documentation: http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128cdca935b-8000.html

The other two things that I can think of off the top of my head is to make sure the certificate was created correctly, possibly even making a new one. The other thing I can think of is to make sure that your ADT version is the correct one for the version of AIR you are targeting in the XML(although I think it would have given you a different error message if that was the case).

3 replies

Known Participant
June 15, 2014

Finally got this to work with:


adt -package -keystore HelloWorld.p12 -storetype pkcs12 -target bundle HelloWorld.app HelloWorld.xml .


Turns out the certificate was invalid...


Thanks for all the help wadedwalker

June 15, 2014

I'm glad you were able to get it working. I don't do a whole lot with ADT creation since I mainly work with flash and let it build my app for me. Sorry it took so many guesses

June 14, 2014

Your XML file looks good. From what I have researched, you may be doing the ADT command wrong(missing "." Out pointing to invalid directories), so double check your command line code.

Adobe AIR Tutorial for HTML / JavaScript Developers

Do a search for "valid" on that page and see a guy who had the same problem in the comments

Known Participant
June 15, 2014

Tried:

adt -package -keystore HelloWorld.p12 -storetype pkcs12 -target bundle HelloWorld.app HelloWorld.xml.


And then it complains about the . at the end:

File /Users/cameron/HelloWorld/HelloWorld.xml. does not exist

So it looks like it's looking in the right place fine, but doesn't like the XML file for some reason... or the command is expecting an AIR file rather than an XML file...

June 15, 2014

The example in the link has a space before the period after the ".xml". Try "HelloWorld.xml ."

Known Participant
June 13, 2014

Any updates to this? Thanks