Select to view content in your preferred language

Moving from viewer for flex to app builder

592
3
10-14-2013 03:43 AM
Asta_KristinOladottir
Occasional Contributor
Hi hi,
I have been using ArcGIS viewer for flex for some time now, but now I want to start to try to build my own widgets. I am just setting up the application builder as instruckted here http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Getting_started_for_developers/...

And I always get 28 Error all saying the same thing:

component PopUpRenderer is defined more than once in this namespace. Remove the mapping to com.esri.ags.portal:PopUpRenderer orcom.esri.ags.webmap:PopUpRenderer

I am so new with this that I don´t know what do do about this. Any hints?
Tags (2)
0 Kudos
3 Replies
YueWu1
by Esri Regular Contributor
Esri Regular Contributor
Hi Asta,

Make sure you only have the right version of swc in the libs folder or referenced in the project settings (Right click your folder and choose Properties -> Flex Build Path. Make sure there is only one agslib swc there. The issue might be more than swc in build path.
Also, it is better to have fthe same version of flex viewer and flex API.

[ATTACH=CONFIG]28324[/ATTACH]
0 Kudos
Asta_KristinOladottir
Occasional Contributor
Thank you for the quick reply. I am using the newest version of the viewer, downloaded here: https://github.com/Esri/arcgis-viewer-flex/tree/master
and I am also using the newest api that is the arcgis_api_for_flex_3_5


Hi Asta,

Make sure you only have the right version of swc in the libs folder or referenced in the project settings (Right click your folder and choose Properties -> Flex Build Path. Make sure there is only one agslib swc there. The issue might be more than swc in build path.
Also, it is better to have fthe same version of flex viewer and flex API.

[ATTACH=CONFIG]28324[/ATTACH]
0 Kudos
YueWu1
by Esri Regular Contributor
Esri Regular Contributor
Hi Asta,

Please check this link to download the version match up with your SWC(Esri Flex API)
https://github.com/Esri/arcgis-viewer-flex/tags

Please import the zip file for example(arcgis-viewer-flex-3.4-src.zip)as a new project to your Flash Builder.
And then add the SWC to your project as the step I posted you yesterday.

Hope this steps can help you figure out the problem.
0 Kudos