Select to view content in your preferred language

Flex 4.1 SDK Warning with FlexViewer 2.1

6741
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
BradleyJanke
Occasional Contributor
Is there any update on this?
0 Kudos
AndrewThomas
Deactivated User
I'm getting this (1st post) error too.

Runs fine when running index.html from inside the flash builder

The opening index.html outside of flash builder 4 results in:

Application Error
Fault Code: Invoke Failed
Fault Info: Error Code 2148 )
Fault Details: Null

(which the debugger tells me is because the swf isn't trusted and cant read config.xml)

then another error:

  'Some error occurred. ExternalInterface doesn't work in Standalone player'.

Running Flash Builder 4 as administrator.

additional compiler arguments:

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

This is using the unedited sample flex veiwer 2.1 src download
0 Kudos
AndrewThomas
Deactivated User
Ok, so back into this now. Had to revert to the 4.0.0 flex SDK. This compiled straight away.

To download this, left click-> properties on the project in flash builder.
Choose flex compiler, if 4.0 is not available, click the configure SDK's link.
In this page you can add additional SDK versions and there is also a link to download other SDK versions.

I had to download 4.0.0, unzip to the SDK folder and add this, apply changes
The 4.0 should now be available in the 'use specific SDK' dropdown on the flex compiler page.

Regards

Andrew
0 Kudos
grahamcooke
Regular Contributor
I am having the exact same problem as Roberts in post 6.

When I view a widget in design mode I get these errors. Also some of my control labels display as if viewed in a mirror (back to front). The project still runs but I can't work in design mode. Very weird!

Is there any solution for this please?
0 Kudos
CynthiaMatney
Emerging Contributor
Wanted to know if anything came from the API Team looking into the inital error from this post
"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"

I am getting this same error and have no idea what to do about it.

I'm also getting the other error mentioned regarding viewer strings that comes and goes.

Thanks!
0 Kudos
TomMarkham
Emerging Contributor
Has any progress been made on the initial posting?

Also, does anybody have a copy of Flex sdk 4.0.0? We have been unable to find a copy of flex sdk 4.0.0 on the Adobe site or elsewhere.

Tom
0 Kudos
DasaPaddock
Esri Regular Contributor
The initial warnings will be fixed in the next release but the Design Mode errors will still be an outstanding issue.

You can download the 4.0 SDK from:
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4
0 Kudos
grahamcooke
Regular Contributor
Dasa.

Compiling against the 4.0 sdk did NOT fix my errors with design mode. Is there any way to fix these at all currently please (as you stated this will not be fixed in next release, but is there some other workaround you know of?)
0 Kudos
DasaPaddock
Esri Regular Contributor
Unfortunately we have not yet found a workaround for the Design Mode errors.
0 Kudos
MarkTorrey
Esri Contributor
I've had success working around the design time resource bundle errors by manually adding the Flex SDK Locale(en_US) to the projects build path.

Project Properties -> Flex Build Path -> Library Path Tab -> 'Add SWC Folder' -> browse to locale directory

<install path>\Adobe\FLEX\SDK\4.1.0\frameworks\locale\en_US
0 Kudos