Troubleshooting
Problem: My new ArcGIS for Android project or sample has a red exclamation mark on it in the Eclipse project explorer.
Solution: Frequently this problem can be fixed by cleaning the project. Highlight the project in Project Explorer and then select Clean from the Project menu.
Problem: An error message "Unable to execute dex: Java Heap Space" occurs within Eclipse.
Solution: Edit the eclipse.ini file to increase the amount of heap space that is available to Eclipse. The eclipse.ini file is found in the same location as the Eclipse executible. This text file contains an entry -Xmx256m usually. Increasing this to 512 should be sufficient for Eclipse.
Problem: My new ArcGIS for Android projects have an error message stating "Android requires .class compatibility set to 5.0. Please fix project properties."
Solution: View the project properties. Look for "Java Compiler" settings. Check "Enable project specific settings" and uncheck "Use default compliance settings". After making these changes click on the Ok button and clean the project.
Problem: My Android tools have disappeared from Eclipse after installing the ArcGIS for Android SDK.
Solution: This can occur on recent versions of Windows (Windows 7 or later) when Eclipse 3.5 (Galileo) is installed into the Program Files location. This happens because the plugin for ArcGIS for Android requires permissions to write to the installation location (to install help and other files). The problem can be quickly fixed by uninstalling the ArcGIS for Android SDK from Eclipse. This problem can be solved by either using a more recent version of Eclipse or by installing Eclipse into another location on the computer.
To uninstall the SDK from Eclipse, please do the following. Select About Eclipse from the Help menu and then click on the Installation Details button. From the Installation Details dialog select the ArcGIS for Android items in this list and click on the Uninstall button.