During ArcGIS runtime for Android development, two problems may occur after eclipse is restarted:
1) during the development of ArcGIS forandroid1.1, problems related to the class provided by the API or the XML file of GIS cannot be imported, this is because the jar package provided by ArcGIS is persisted container. In this case, the related GIS classes in the API cannot be used normally in the project.
Error message during running:
Cocould not find class 'com. ESRI. Android. Map. mapview', referenced from method com. ESRI. ArcGIS. Android. samples. querytask. attributequery. oncreate |
Java. Lang. runtimeexception: unable to start activity componentinfo {com. ESRI. ArcGIS. Android. samples. attributequery/COM. ESRI. ArcGIS. Android. samples. querytask. attributequery }: Android. View. inflateexception: Binary XML file line #15: Error inflating class com. ESRI. Android. Map. mapview |
2) if a project that can be compiled normally fails to run normally, an error is reported in the Android system: Sorry, "project" has stopped running.
We can solve this problem in the following ways:
1. Right-click a project in eclipse and select Properties in the pop-up box.
2. Select javabuild path in the attribute box.
In the order andexport tab on the right, we can see that the jar of ArcGIS is persisted container. When the imported jar package is in this status, the classes in the package cannot be used normally in the project.
3. Remove the options of the jar package of ArcGIS, click OK, and then execute steps 1 and 2 again, in the pop-up form, we can see that the jar package of ArcGIS is normal,
4. Finally, we need to clear the project and click Project --- "clean ..
In the pop-up box, select a problematic project for cleanup,
5. At this point, our project can run normally.
Note:
Key References: http://blog.csdn.net/arcgis_mobile/article/details/7542867