Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not resolve * to a component implementation

Tags:

apache-flex

I'm a wee bit stuck on this, and was hoping you might have some input to help me.

I'm getting the "Could not resolve * to a component implementation." error message. However, everything I've read about this via Google hasn't helped my case in the slightest. I presume I'm just missing something obvious, but maybe its something more serious.

So, to solve this problem, I've tried two things, and both work, as far as they take me. First, I added a new component, of the exact same variety, and then copied the contents of the erroring component into it. I replace the viewstack 'page' with the new component (which as near as I can tell is IDENTICAL, but with a different name), and the compiler error goes away.

I can also solve this by simply renaming the original component & letting FB4 refactor for me. The error goes away again. But if I then re-rename back to the original name, I get the compiler error again.

I've tried to clean the project several times, and that doesn't help. Neither does deleting the workspace, and re-importing the project.

I'd really like to understand what I've done wrong here. What am I missing?

Thanks much!

like image 692
reidLinden Avatar asked Jun 11 '26 23:06

reidLinden


2 Answers

Try the following:

  • Right-click on your project in the Package Explorer.
  • Select "Properties" in the pop-up menu (last item).
  • Click "Flex Library Build Path"
  • Click the "Classes" tab

Try to find the name of your new component in there. If you do, see if it is checked or not. If it is not, check it. That should solve the problem right there, but you may have to clean and (sometimes) quit FB4 and relaunch.

like image 154
Robusto Avatar answered Jun 15 '26 19:06

Robusto


Usually errors like this means you have two components named similarly and the compiler couldn't tell which one you wanted to use.

Do you have another component with the same, even in a different package? Or do you have a variable in your component the same name as the component? Be sure to check your SWCs and/or Library projects.

I'm assuming this is a compile time error; is that correct?

like image 36
JeffryHouser Avatar answered Jun 15 '26 19:06

JeffryHouser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!