Collecting error reports in android Development

Source: Internet
Author: User

Error Message 1: Error in an XML file: aborting build

Cause analysis:
This error is caused by many situations. Generally, xml files are faulty. The general problem is that the code of the xml file is not written correctly. It may be a tag or something else.

Solution:
1. First try the most common solution: Project-> clean
2. view the header at the top of the xml file <? Xml version = "1.0" encoding = "UTF-8"?> , This must be available. If not, an error will be reported, and this must be in the first line (Here we want to see the row number). Otherwise, an error may be reported, in addition, check whether the header code of this line is correct (angle brackets or something)
3. Check whether more or less
4. Check whether other labels in the Code are correct.
5. If the problem persists, click other Activity java> Delete main. out. xml (if any)> RUN
6. My personal experience is to delete the row where the error is located and re-write it.


This article is from the "Android Development notes" blog, please be sure to keep this source http://douruanliang.blog.51cto.com/4912893/1294908

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.