Skip to main content
Inspiring
October 31, 2012
Answered

iOS (iPad): "unable to find named traits" error when building for "standard" only

  • October 31, 2012
  • 2 replies
  • 1944 views

Hello,

I've been building an app happily on desktop and "fast" mode with no problems. However when I try to build in Standard mode I get the following error pop up:

Exception in thread "main" java.lang.Error: Unable to find named traits: spark.components.supportClasses::StyleableTextField

    at adobe.abc.Domain.resolveTypeName(Domain.java:232)

    at adobe.abc.Domain.resolveTypeName(Domain.java:149)

    at adobe.abc.GlobalOptimizer$InputAbc.resolveTypeName(GlobalOptimizer.java:272)

    at adobe.abc.GlobalOptimizer$InputAbc.resolveSlotType(GlobalOptimizer.java:946)

    at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:535)

My guess it has something to do with the fact that I have a preloader factory class with my application. Even though not necessary for the iPad per se, this app is cross platform and is intended to be built as a standard swf for web use as well, so I'd like to keep it in there. I had to include the following two paths as SWC folders in my Actionscript Build Path -> Library Path in the project settings for it to even compile in the first place:

C:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\flex_sdk_4.6.0.23201\frameworks\libs

C:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\flex_sdk_4.6.0.23201\frameworks\locale\en_US

So I suspect these might have something to do with my problem. I am using the latest released Flex SDK with Adobe Air 3.4 on Flash Buidler 4.6.

I've seen tons of people complain about this error when it comes to Air Native Extensions (ANE) but I'm not writing one. Anyone run into something like this with just a plain app?

Thanks!

This topic has been closed for replies.
Correct answer Zen Seven

I fixed the problem. I had to manually include in the source path C:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\frameworks\projects\mobilecomponents\src, which is where traits: spark.components.supportClasses lives. When I tried this with Flash Builder 4.7, or FlashDevelop 4.04, I didn't have to do this I do not understand the inconsistency here. But at least it compiles.

2 replies

Zen SevenAuthorCorrect answer
Inspiring
October 31, 2012

I fixed the problem. I had to manually include in the source path C:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\frameworks\projects\mobilecomponents\src, which is where traits: spark.components.supportClasses lives. When I tried this with Flash Builder 4.7, or FlashDevelop 4.04, I didn't have to do this I do not understand the inconsistency here. But at least it compiles.

chris.campbell
Legend
October 31, 2012

Thank you for reporting back what fixed the issue for you.  Glad you got this resolved.