Android error aapt.exe stopped working solution
When using eclipse to program Android Java, sometimes we encounter such a problem: the prompt of aapt.exe stopping for no reason pops up. Although the program will not crash, this prompt often pops up, which is very annoying. Today, Xiaobian will teach you how to solve the problem when aapt.exe stops working
Android exception - aapt.exe has stopped working. During Android development, when building a project, the following exception occurs: aapt.exe has stopped working without any other error prompt. This error is generally caused by an error in the resource file or XML file.
Solution: after cleaning, you can find that there will be an error prompt in the console, and then solve it according to the error prompt.
My situation: [2013-04-20 14:35:50 - bigboy] error in an XML file: aborting build. It is obvious that there is an error in the XML, but it does not prompt which XML file is wrong, so you need to find it yourself.
Finally, it is found that the name attribute is not added when defining the attribute, and it is normal after adding it
<declare-styleable name="CustomInputControl">
method
1. Close error prompt directly
2. Click window -- preferences on the eclipse menu bar
3. Click the small triangle on the left of Android in the left menu to open the menu
4. Click build
5. Select silent and confirm
6. Check your XML file for errors. Sometimes the missing attribute will cause this problem. For example, the name attribute is often forgotten