Keep track of some of the errors and solutions that occurred while I was developing Baidu maps and ArcGIS for Android (subsequent updates)

Source: Internet
Author: User
Tags stack trace android sdk manager

[1] The import com.baidu.mapapi.map.Geometry conflicts with a type defined in the same file

Solution: Baidu API package under the geometry and a class name conflict, the class name for another name, do not and Baidu related classes within the same class name

[2]java.lang.classcastexception:

FIX: Type conversion error. Viewing the mainfest.xml manifest file for the Test_geometry project, there are fewer permission declarations for the MyApplication class (map-related settings) in the <applicaiton> tag, and there may be an error in the intermediate code, Double-check the key code location for any write errors.

[3]org.eclipse.jdi.timeoutexception:timeout occurred while Waittingfor packet100524.occurred

Creatingstep Request

FIX: Connection timeout, change time in G:\workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings directory

[4] Error parsing xml:junk after document element

Solution: The main root of the layout file has multiple nodes, a legitimate XML file has only one main root node, check <.../>

[5]java.lang.reflect.invocationtargetexception

Solution: To do the map positioning, the positioning of the replacement into 3.0 version of

[6] Unable to resolve target ' android-7 '

Workaround: This is an error that is frequently encountered by the lower version of code import Eclipse, and the project target settings project.properties in the source code are inconsistent with the current Eclipse environment settings. Change Project Target.target=android-7 to the version of AVD you currently support. General android-8 corresponding to the Android SDK is 2.2, android-10 corresponds to 2.3, note that when modifying the file do not arbitrarily delete spaces and placeholders to see the development Environment SDK corresponding API serial number (can be viewed in Android SDK manager)

[7] Installation Error:install_failed_insufficient_storage

Resolution: Installation failed, the phone memory is not enough, uninstall some programs, uninstall the previously installed name program

[8] New ArcGIS for Android Sample project, do not show map or error

FIX: The real reason is: Revision17 's Android SDK and Eclipse ADT plugin include major changes to the dependent managed Android project that will break the existing ArcGIS Android SDK project. This is a question of their arcgis when designing the ArcGIS for Android API. 1. Right-click on your project, select Build Path>configure Build Path ..., select all arcgis_for_android options, then OK. 2. Right-click on the project, select Android Tools, and click Fix Project Properties.

[9] New ArcGIS Project for Android projects failed with problem Opening Wizard resolved:

The wizard cannot be opened. Create a new Android project and then right-click the-->properties--> Add Jar package form in the new project

Manually add five ArcGIS packages, which is an ArcGIS API project

[9] Invaild Project Desciption

FIX: Android imports a project when prompted Invalid project Description The word, the imported project location and another project overlap do not put the package in the Eclipse default workspace, put it in another folder and import it

[10] Unable to execute dex:java.nio.BufferOverflowException. Check the Eclipse log for stack trace.

Workaround: Right-click the project, select Java Build path-librarise, remove Android Dependencies, and note that each time you start eclipse, do this

[11] Resolve "Save could not being completed" issue in Eclipse

FIX: In Eclipse----and Preferences---Types--click Java Properties Fil E, at the bottom appears ' Default edcodng: ', changed to UTF-8 (Note: original iso-8859-1), and then update

[12]eclipse write Android Auto Add event, error The method Setonclicklistener (View.onclicklistener) in the

Type View isn't applicable for the arguments (new Onclicklistener () {})

Solution: A package was not added import Android.view.View.OnClickListener;

[13] java.io.IOException:Unable to open sync connection! when using the phone debug program

FIX: Turn off USB debugging and start again

[14] Modifying the SDK version of the Android project

Resolution: 1, right-click the project---properties----Resource-----Android in the Project Bulid Target dialog box to select the Android version you need. 2, Resource---Libraries dialog box to the right of the addlibraries---Android Classpath containe

[15]java.io.ioexception: The remote host forced the shutdown of an existing connection.

FIX: Restart Eclipse and ADB

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.