tsiki
tsiki

Reputation: 1799

Flash Builder 4.5: could not resolve X to a component implementation

I just upgraded out Flex project to use SDK version 4.5.1.21328 and the Flash Builder to version 4.5

All of the sudden, I'm getting several red tags on the Flash Builder: "could not resolve s:State/fx:Script/whatever to a component implementation"

However, the project builds fine with Maven, and seems to work well too.

Does anyone have any information on how to remove these "problems"?

Thanks.

Upvotes: 0

Views: 3678

Answers (4)

Calvin
Calvin

Reputation: 11

Great tip. Error I was getting was:

Could not resolve <mx:RichTextEditor> to a component implementation.

I had to add the above settings and do the following to get mine to compile.

Here's what I did: project properties->Flex Build->Path-> Library path tab. press Add SWC... add C:/Program Files/Adobe/Adobe Flash Builder 4.5/sdks/4.5.1/frameworks/libs/mx/mx.swc

Then in the Source Path tab press add folder navigate to: C:/Program Files/Adobe/Adobe Flash Builder 4.5/sdks/4.5.1/frameworks/projects/mx/src

then add in the namespaces as listed in the above article. That fixed it for me.

Upvotes: 1

tsiki
tsiki

Reputation: 1799

Finally managed to find a workaround. Adding

--namespace+=http://ns.adobe.com/mxml/2009,${flexlib}/mxml-2009-manifest.xml --namespace+=http://www.adobe.com/2006/mxml,${flexlib}/mxml-manifest.xml --namespace+=library://ns.adobe.com/flex/spark,${flexlib}/spark-manifest.xml

to the "Additional compiler arguments" in properties -> Flex Compiler seems to remove all the red markers.

Upvotes: 2

Richard Haven
Richard Haven

Reputation: 1154

Your batch builder might be using a different set of library files than the IDE. Look in Project | Properties under Build Path and see what version of the SDK it's using.

Upvotes: 0

Sam DeHaan
Sam DeHaan

Reputation: 10325

Clean.

Just as the commenter said, usually just a strange Flash Builder bug. If Project -> Clean... doesn't fix it, comment or revise question.

Upvotes: 0

Related Questions