If FlexBuilder complains about ‘Error creating AIR file: 305: ERROR, 10′ – Solution

Twitter It!

Today, I worked on Activity, an AIR-based time tracking solution:


As I read of Flex SDK 3.2.0 and AIR 1.5, I decided to upgrade. While the update install itself finished fine – FlexBuilder failed to run the compiled app. Actually, FlexBuild printed this error message:

Error creating AIR file: 305: ERROR, 10, http://ns.adobe.com/air/application/1.1

If you see such an error message, open the application’s descriptor file -app.xml and review the second line, which should contain an XML namespace declaration like

http://ns.adobe.com/air/application/1.1

Change the postfix version number to 1.5

http://ns.adobe.com/air/application/1.5

and you are fine: The compiler just needs to know which lib to compile against.

Update 2009-02-03: Our fellow Flex-coders in Russia picked up the post.

10 Responses to If FlexBuilder complains about ‘Error creating AIR file: 305: ERROR, 10′ – Solution

  1. Thanks for sharing :-)

  2. Thank You!!!! You saved me a lot of aggrivation. Problem fixed right away. I had 1.0, not even 1.1 (and it was compiling under old SDK. But under 1.5 one must target 1.5 only. Did it, and it worked.

    P.S.: You have a typo in the last namespace, you didn’t replace 1.1 with 1.5. But it’s clear that one should.

  3. justStefan

    Your are welcome, greg! And thank you for the hint regarding the typo. I’ll fix it soon.

  4. Thanks for this time-saving psot, Stefan! It helped me to not start pulling hairs out of my head. BTW, I guess this is not the compiler error, but AIR Developer Tool (ADT)’s one. Here’s the page with ADT error codes: http://kb.adobe.com/selfservice/viewContent.do?externalId=kb404054. There’s even format of such errors are described, but error 305 are not here, the list ends with “303″ error.

    So, take more congrats — you’ve greatly cleared out an undocumented stuff!

  5. justStefan

    Rost, thanks for pointing out, that the problem isn’t related to AIR/Fles but AIR Developer Tool [ADT].

    While visiting your site, I found this intersting demo of the Alternative3D development platform for D gaemes in Flash. Be warned, that the SWF solution takes some time to load – even through my 16Mbtit link.

    Alternativa3D: http://alternativaplatform.com/en/alternativa3d/
    Strategy game demo [FP 10]: http://alternativaplatform.com/swf/demos/strategy/strategy.swf

  6. Stefan, I agree — strategy demo is pretty big. BTW, I liked more the Tanks game, because it’s playable (http://tanks.alternativaplatform.com/)(despite the fact, that Alternativa guys sometimes update / reload the web server).

  7. Thanks, I had the same problem :)
    I try this and it works!

  8. Thanks so much for this post. Saved me a lot of time. Flex was giving me lots of issues. Already had to reinstall it to get the MXML editor to load. This fixed the problem right away (I had 1.0 not 1.1). Everything works now.
    Thanks!

  9. Thank you very much, I just updated my application to ensure everything was up to date before publishing an important final installer. When I got the error message I was cursing Adobe, I found your thread and this worked a treat. Thanks for sharing this.

  10. Thanks man!!! it exactly what i been looking for..

    Greetings from Venezuela

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

*

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>