New Flex projects contain incorrect "layout=absolute" variable

Issue

Users of Apache Flex 4.10.0 (and later) have reported a problem when creating new Flex projects.  The Application tag erroneously contains the attribute 'layout="absolute.'"

Solution

As described in FLEX-33636 in the Apache Flex bug base, a manual workaround is to use the editor to remove the erroneous attribute. However, to avoid requiring you to fix every new project, Adobe has created a patch to one of the JARs in Flash Builder. The JAR does not work with Flash Builder 4.6.

  1. Download the embedded ZIP file (codemodel.jar.zip).

    Download

  2. Shut down Flash Builder.

  3. Navigate to the folder <Flash Builder Installation Folder>/eclipse/plugins/com.adobe.flexbuilder.codemodel_4.7.0.349722.

  4. Save the existing codemodel.jar to another folder (in case you want to revert to the original later).

  5. Extract the codemodel.jar from the ZIP file and replace the existing codemodel.jar.