Dealing with dependencies in ArcGIS Android projects and ADT v17

Revision 17 of the Android SDK and Eclipse ADT Plugin includes major changes to the dependency management of Android projects and will break existing ArcGIS Android SDK projects.  The reason for this is Android projects in Eclipse no longer adds dependencies from User Variables.  Since this is a deployment issue in our design you may not at first recognize the issue as your projects will not show any problems.  When you attempt to deploy your project from within Eclipse or as an exported APK file you will notice your app crashes.   Fortunately there is a simple fix:

  1. Click on your ArcGIS for Android project
  2. Select Properties
  3. Select Java Build Path
  4. Select Order and Export
  5. Check all the ARCGIS_FOR_ANDROID resources

Here is a screenshot of how the Order and Export tab should look.

Now you just need to update your project to r17 specs.

  1. Click on your ArcGIS for Android project
  2. Select Android Tools > Fix Project Properties

That’s it, your app should now work as expected.  We are working to address this in our upcoming release of the ArcGIS Runtime SDK for Android v1.1 expected in couple of weeks.

This entry was posted in Developer, Mobile and tagged , , . Bookmark the permalink.

Leave a Reply

3 Comments

  1. bantian2012 says:

    Thank you very much !

  2. aryasharad says:

    Nice Help. I am begineer in ArcGIS Android SDK. I am not getting any ARCGIS_FOR_ANDROID resource in this tab (Order and export).
    I have “Android Dependencies” and “ArcGIS for Android 10.1.1″ which is unchecked. I did check those and run but no luck.
    How will i resolve this issue?
    Thanks in advance.
    Sharad Arya

    • Dan O'Neill says:

      You can leave Android Dependencies unchecked. When you create a 10.1.1 project the ‘ArcGIS for Android 10.1.1′ project is checked by default. Did you run ‘Android Tools > Fix Project Properties’? If so you can try the following:

      Select Project – Clean
      Select Clean projects selected below radio and ensure your project is selected and click OK

      You may need to run ‘Android Tools > Fix Project Properties’ again after cleaning your project. If you continue to get errors please share the error stack trace.