19
Nov
08

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

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. 1 Clive Dez 19th, 2008 at 09:02

    Thanks for sharing :-)

  2. 2 Greg K Jan 9th, 2009 at 16:52

    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. 3 justStefan Jan 11th, 2009 at 13:57

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

  4. 4 Rost Feb 2nd, 2009 at 19:13

    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. 5 justStefan Feb 2nd, 2009 at 22:22

    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. 6 Rost Feb 2nd, 2009 at 23:08

    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. 7 Lisette Mrz 30th, 2009 at 21:09

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

  8. 8 Alex Jul 31st, 2009 at 20:59

    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. 9 Simon Sep 2nd, 2009 at 17:03

    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. 10 jacsdev Feb 4th, 2010 at 16:49

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

    Greetings from Venezuela