Select to view content in your preferred language

Flex 4.1 SDK Warning with FlexViewer 2.1

6725
24
09-23-2010 06:43 AM
RobertScheitlin__GISP
MVP Emeritus
API Team,

   I get this warning when using FLEX SDK 4.1

Description    Resource    Path    Location    Type
com.esri.viewer:BaseWidget is a module or application that is directly referenced. This will cause com.esri.viewer:BaseWidget and all of its dependencies to be linked in with index. Using an interface is the recommended practice to avoid this.    flexviewer2.1        Unknown    Flex Problem


Any comments on this one?
Tags (2)
0 Kudos
24 Replies
RobertScheitlin__GISP
MVP Emeritus
Mark,

   GREAT JOB! this works pointing to the 4.0 SDK as well.
0 Kudos
HugoMaurício
Deactivated User
Hi.

Finally solved the problem. Here's how.

In the Project Properties Window - > Flex Compiler Tab -> Addicional compiler arguments: Changed from "-locale=en_US ..." to "-locale en_US...". So, I removed the equals character.

The full arguments line is

"-locale en_US -source-path=locale/{locale} -keep-all-type-selectors=true"

Hugo Maurício
0 Kudos
DavidMarley
Frequent Contributor
I was having the same issue with the design time errors (in my case with ESRI Flex 2.2 and Flash Builder 4), and Hugo's fix did the trick for me (i.e., removing the equal sign, so from "-locale=en_US ..." to "-locale en_US..." ).

Thanks for posting Hugo!
0 Kudos
FredericSchettini
New Contributor
I also experienced the following error : Unable to resolve resource bundle "ESRIMessages" for locale "en_US"

The marktorrey bypass gave me the way : "manually adding the Flex SDK Locale(en_US) to the projects build path."

The sources where put on an UNC driver (sort of \\servername\directory$\Sources

I just move the source to a local directory : C:\Local\Sources
=> The errors then disapeared
0 Kudos
JeffPerkins
Occasional Contributor
I'm using Flexapi 2.2 and getting "unable to open 'locale/en_US' error.
I've adding additional compilier argument:
-locale en_US -source-path=locale/{locale} -keep-all-type-selectors=true

In addition, I've "manually adding the Flex SDK Locale(en_US) to the projects build path"

Any info on this...

Thanks,
0 Kudos