0
votes

I've been working on a Flash Builder project for about a week and occasionally encounter one of these two errors when I build:

An internal build error has occurred. See the error log for more information.

1131: Classes must not be nested.

A quick Project > Clean fixes things up. When I opened my project this morning and tried to build it, I received the internal build error again. This time, however, Project > Clean results in 5 separate "Classes must not be nested" errors, all pointing to my main class declaration.

Running Project > Clean again leads back to the internal build error. If I Clean again, I get the 5 class errors again, and so on.

I'm using Flash Builder 4.6, Flex 4.6, and AIR 3.5. I haven't made any changes to my codebase since yesterday. Any ideas what might be causing this?

2
You can try to build your app with ant task to see if problem lies withing flash builder or in your project. If ant task will run successfully, then you have to double-check your project settings like sdk version, referenced libs and sources and so on. If that doesn't help, you can try delete and import project again. And finally reinstalling flash builder.user1875642
do you use the include directive anywhere?Ronnie
Also, what does the error log say? I don't use flash builder for AS3 projects but I have used eclipse and I never really cared for their "logs"Ronnie
@Ronnie I'm not using the include directive anywhere. The error log says "Uncaught exception in compiler." Maybe I should look into using eclipse.ced
FlashBuilder just does this every once in a while and as far as I know there's nothing you can do about it (short of switching to an IDE that works). The only "solution" that worked for me was deleting the project (not the code, but make sure every file related to FB is gone) and recreating it from scratch.RIAstar

2 Answers

0
votes

I had the same problem with flashb uilder 4.6, when i try to compile the app out of the blue it says "flash builder internal build error has occurred see the error log for more information"

to resolve this you have to check the compiler arguments when this happens you wont be able to go to compiler argumnts GUI, you have to edit it in .actionScriptProperties file

remove -local and local names save the file and try to compile you would not get the error

to put back the local you have to rephrase the local as follows -locale=en_US,us_EN

0
votes

What worked for me was to remove all swc references from the project's compiler settings, then re-insert them.