Flex "Object not found". SDK not recognized?

It happens that I get a weird "Object not found" compile error in my program(s). It seems as if IntelliJ does not recognize the current Flex SDK. The problem usually arise after a reboot of the computer.

Workaround:
1 Delete swc's from bin folders (project contains 12 library modules and one module with 2 web-app)
2 Open Project Structure -> Platform Setting
3 Alter the name of the relevant SDK. Click OK (closing the Project Structure form seem important)
3 Reset the name of the relevant SDK. Click OK (closing the Project Structure form seem important)
4 Invalidate caches from the File menu.
5 Voila! That's it, my code compiles.

Suggestions appreciated!

2 comments
Comment actions Permalink

"Object not found" may be caused if playerglobal.swc is not noticed by the IDE, for example when you add a different version of playerglobal to the existing SDK installation or mdify SDK installation in any way. You may check if playerglobal.swc is in its place: see Dependencies tab of the build configuration, expand SDK node. In case of any problems:
- File | Synchronize
- Project Strucutre | SDKs, delete existing SDK and add it again. Check Dependencies tab then.

0
Comment actions Permalink

Thank you for the suggestion. I'll try that when I'm back from the holidays.

0

Please sign in to leave a comment.