Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

In version 2.x, the package name was com.esri.ags.webmap

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


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.