2010-05-11

Fixing the "unable to export SWC oem" error in Flash Builder

If you created a project using Flex Builder 3 and wish to upgrade it to Flash Builder 4, you might see the following error in the Eclipse "Problems" view when you attempt to compile for the first time:

unable to export SWC oem.

I read on several sites how to fix the problem but here is my little piece of details with step-by-step instructions:

  1. Shutdown eclipse
  2. Using your favorite text editor, open the .flexLibProperties file in the root of your project
  3. Erase all lines between the <includeResources> tags and just replace with an empty version of that tag (e.x.: <includeResources/>)
  4. Save updated .flexLibProperties file
  5. Start eclipse
  6. Use the clean and build options under the "Project" menu
And voila, your project now compiles under Flash Builder 4

Enjoy!

3 comments:

Tom Gruszowski said...

You would think this issue would somehow be fixed in FB4 :) There must be 10's of 'how to' blog posts about this. Either way thanks for posting your very concise fix for all the new Flex users who will pull their hair because of this silly bug.

Unknown said...

This is a well written article, but unfortunately it did not help resolve my problem. I guess I'll keep looking for those 10s of other articles. :(

Unknown said...
This comment has been removed by the author.