Failed to resolve * for component implementation

I was a bit stuck with this, and was hoping you could have some input to help me.

I get the message "Could not resolve * for component implementation". error message. However, everything that I read about it through Google did not help my business at all. I suppose I just missed something obvious, but maybe it is something more serious.

So, to solve this problem, I tried two things and they work as far as they accept me. First, I added a new component of the same kind, and then copied the contents of the error component into it. I replace the View page with a new component (which is as close as possible to IDENTICAL, but with a different name), and the compiler error disappears.

I can also solve this by simply renaming the source component and allowing me to refactor FB4. The error will disappear again. But if I rename back to the original name again, I will get a compiler error again.

I tried to clean the project several times, and this does not help. Does not delete the workspace and does not import the project.

I would really like to understand what I did wrong. What am I missing?

Thank you so much!

+3
source share
5 answers

Typically, such errors mean that you have two components with the same name, and the compiler cannot determine which one you want to use.

, ? , ? SWC / .

, ; ?

+1

:

  • .
  • "" ( ).
  • " Flex"
  • ""

. , , . , . , , , () FB4 .

+3

SDK Flex 4.5

SDK, -, , .

, , , > SPARK HALO

, - .

+1

, xml , .

, xmlns .

:

MyControl.mxml, com.company.components.controls

mxml :

<MyControl xmlns:mx="http://www.adobe.com/2006/mxml"
           xmlns:util="com.company.components.util.*"
           xmlns:components="com.company.components.*"
           xmlns="com.company.components.controls.*">

, xmlns .


:

, MXML, , , mxml.

, , MyControl.mxml com.company.components com.company.components.controls . xmlns , :

<controls:MyControl xmlns:mx="http://www.adobe.com/2006/mxml"
                    xmlns:util="com.company.components.util.*"
                    xmlns="com.company.components.*"
                    xmlns:controls="com.company.components.controls.*">

, - com.company.components, mxml MyControl . strong > .

; . , xmlns.

, , , , . mxml, .

, mxml , , . ( )

+1

, , , , , .

0

Source: https://habr.com/ru/post/1752528/


All Articles