[ArcGIS Android Development] Two problems may occur after eclipse is restarted

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.