6 Replies Latest reply on Mar 4, 2008 7:07 PM by Stonehippo2

    AIR error

    Ajax2000
      I've installed the new AIR release but I am having problems getting it to work. This is what I have done so far. I first downloaded the AIR SDK and expaned it into a directory I created called AIR. I next alternate my system PATH to include the path to the BIN folder in the under the AIR/AdobeSDK/BIN directory. I next created a standard HTML files and a XML Descriptor file (see below). I ran into problem when I try to check to see if the ADL file is setup. The error message I get is 'Descriptor version does not match runtime version'

      Can someone tell me what I am doing
        • 1. Re: AIR error
          Stonehippo2 Level 1
          Make sure that your application descriptor includes the correct version number. You should have a root element of:

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

          If the final part is not 1.0, then you've got the wrong version number. It might be something like "M6" if you're basing your work on examples from one of the beta releases.
          • 2. AIR error
            Ajax2000 Level 1
            That cool, thank you

            now another error 'application file name must have a non-empty value. I am sure what it means? here are my codes.

            <?xml version="1.0" encoding="UTF-8"?>
            <application xmlns=" http://ns.adobe.com/air/application/1.0" appId="AirHelloWorld" version="1.0">
            <name>AirHelloWorld</name>
            <title>AirHelloWorld Installer</title>
            <description>HelloWorld</description>
            <copyright></copyright>
            <rootContent systemChrome="standard" transparent="false" visible="true">AirHelloWorld.html</rootContent>
            </application>
            • 3. Re: AIR error
              Ajax2000 Level 1
              That cool,

              I made the same setup but I am getting a different error. I am getting 'application file name must have a non-empty value. I am sure what it means? here are my codes.

              <?xml version="1.0" encoding="UTF-8"?>
              <application xmlns=" http://ns.adobe.com/air/application/1.0" appId="AirHelloWorld" version="1.0">
              <name>AirHelloWorld</name>
              <title>AirHelloWorld Installer</title>
              <description>HelloWorld</description>
              <copyright></copyright>
              <rootContent systemChrome="standard" transparent="false" visible="true">AirHelloWorld.html</rootContent>
              </application>
              • 4. Re: AIR error
                Ajax2000 Level 1
                That cool,

                I made the same setup but I am getting a different error. I am getting 'application file name must have a non-empty value. I am sure what it means? here are my codes.

                <?xml version="1.0" encoding="UTF-8"?>
                <application xmlns=" http://ns.adobe.com/air/application/1.0" appId="AirHelloWorld" version="1.0">
                <name>AirHelloWorld</name>
                <title>AirHelloWorld Installer</title>
                <description>HelloWorld</description>
                <copyright></copyright>
                <rootContent systemChrome="standard" transparent="false" visible="true">AirHelloWorld.html</rootContent>
                </application>
                • 5. Re: AIR error
                  Joe ... Ward Level 4
                  The application descriptor that you are using appears to be from an old Beta of AIR. The structure of the file has changed quite a bit. You can find the updated documentation at the AIR Developer's Center: http://www.adobe.com/devnet/air/
                  • 6. Re: AIR error
                    Stonehippo2 Level 1
                    The AIR SDK also includes a template copy of the new application descriptor in the /templates folder.

                    In your case, the new format would be:

                    <?xml version="1.0" encoding="UTF-8"?>
                    <application xmlns=" http://ns.adobe.com/air/application/1.0">
                    <id>AirHelloWorld</id>
                    <filename>AirHelloWorld</filename>
                    <name>AirHelloWorld</name>
                    <version>1.0</version>
                    <title>AirHelloWorld Installer</title>
                    <description>HelloWorld</description>
                    <copyright></copyright>
                    <initialWindow>
                    <content>AirHelloWorld.html</content>
                    <systemChrome>standard</systemChrome>
                    <visible>true</visible>
                    </initialWindow>
                    </application>

                    Basically, the format of the descriptor file changed from was normalized from a mixed attribute/element content model to node-only. Also, note that you don't need to include the <transparent/> element if <systemChrome>standard</systemChrome>.

                    HTH