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