Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

For some reason while attempting to import the com.esri.ags.portal.*, despite having the library imported in flex builder, it keeps on giving the error "import cannot be found." The strange thing is every other required import from the sample widget is not giving the same error. I tried multiple flex versions and refreshed and rebuilt, but it still has that issue.

share|improve this question
    
Which version of the ArcGIS API for Flex are you using? –  Bjorn Svensson Mar 1 '13 at 14:27
    
I am using version 4.1, but I am allowing it to recognize 3.0 in the preferences. –  Carl Carlson Mar 1 '13 at 15:02

1 Answer 1

I'm not sure what version of Esri's Flex API (a.k.a ArcGIS API for Flex) you are using, but it sounds like it could be because of a package name change.

In version 3.0 and above of the ArcGIS API for Flex, the package name is com.esri.ags.portal http://resources.arcgis.com/en/help/flex-api/apiref/

In version 2.x, the package name was com.esri.ags.webmap http://help.arcgis.com/en/webapi/flex/apiref/

Version 3.0 and above requires Adobe/Apache Flex SDK 4.5 or later, while version 2.x only required 4.0.

share|improve this answer
    
I've tried both, but it didn't seem to fix the problem. Luckily there's no errors at the moment, so I'm ignoring the widget and examining another one. –  Carl Carlson Mar 11 '13 at 14:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.