Select to view content in your preferred language

Errors in Flexviewer using API 2.0

2409
7
08-31-2010 11:56 AM
ShaningYu
Honored Contributor
I used ERSI's Flexviewer template and like it very well.  Several months ago, I tried to use API 2.0 to replace 1.3.  However, I got a lot of errors.  Today I tried again, and was still unsuccessful.  A typical type of error is post below:

component UniqueValueInfo is defined more than once in this namespace.  Remove the mapping to com.esri.ags.renderers.supportClasses:UniqueValueInfo or com.esri.ags.renderers:UniqueValueInfo
Resource:   Flexviewer
Location:  Unknown
Type:   Flex Problem

I had a post below for this problem.  Has any accounted this problem?  If yes, how to solve it?  Please share your experience.

Thanks.
Tags (2)
0 Kudos
7 Replies
BjornSvensson
Esri Regular Contributor
The UniqueValueInfo class has been moved to the com.esri.ags.renderers.supportClasses package.

http://help.arcgis.com/en/webapi/flex/apiref/index.html?com/esri/ags/renderers/supportClasses/Unique...

This is currently missing from the migration steps, but we'll add it there.
0 Kudos
DasaPaddock
Esri Regular Contributor
Also make sure you don't have the old swc in your libs or Project Settings.
0 Kudos
ShaningYu
Honored Contributor
Thanks.  Will try.
0 Kudos
ShaningYu
Honored Contributor
The errors display after I removed API 1.3 and added API 2.0.
Per your response, ESRI has not fix this defect in its API yet.  Is it right?  Thanks.
0 Kudos
DasaPaddock
Esri Regular Contributor
Using the Sample Flex Viewer with the 2.0 API is not supported. It could be done, but it'd be a lot of work since you'd also be moving to Flex 4. You could start with the 2.0 beta of the ArcGIS Viewer for Flex available at: http://help.arcgis.com/en/webapps/flexviewer/

It should be possible to migrate non "Sample Flex Viewer" apps  to 2.0 relatively easily depending on their size.
0 Kudos
khushisharma
Emerging Contributor
Sir

i already asked you question.........i am new to flex on which project i am working is already developed by another developer in flex 3 and sdk 3.2 , agslib 1.3.

i am trying to migrate flex builder 3 project into flash builder 4.6 and using sdk 4.6.

first i tried to add agslib 1.3 in 4.6 builder but now i am adding 2.5 agslib library

for it i removed agslib1.3 swc from lib folder and add agslib 2.5 but now i am facing error

"component SimpleMarkerSymbol is defined more than once in this namespace. Remove the mapping to com.esri.ags.symbol:SimpleMarkerSymbol or com.esri.ags.symbols:SimpleMarkerSymbol"

sir i am very confused..........and i am not conform that earlier developer had used flexviewer with agslib1.3 for same project and should i also add flexviewer new version for agslib2.5.

i am confused about flexviewer because my project directory structure showing flexviewer folder where some widgets swc are present.

please sir help me out how to come out from this problem....my project has stuck now
0 Kudos
DasaPaddock
Esri Regular Contributor
Make sure you only have the 2.5 swc in the libs folder or referenced in the project settings under Flex Build Path -> Library path.
0 Kudos