Adobe AIR: Error when creating AIR file: 303
I’m currently using Flex Builder 3.0.1.205647 with Flex SDK 3.1.0 and I got an error saying Flex couldn’t create my AIR file. After a bit of googling I found out that it is a bug in Flex Builder 3 (Bug report #FB-11712), and it seems like it will be fixed in the Gumbo release.
The bug is related to adding custom application icons. You do this by editing the application’s xml file. To be more precise, at the lines which looks like these:
<!-- The icon to display for the file type. Optional. --> <icon> <image16x16>icon_16.png</image16x16> <image32x32>icon_32.png</image32x32> <image48x48>icon_48.png</image48x48> <!--image128x128></image128x128--> </icon>
The solution to this bug is actually quite simple. Simply comment out the icons you don’t plan to use -just like I have done in the example above. Oh, and be sure to tick the check box “Copy non-embedded files to output folder” in Project -> Properties -> Flex Compiler.