Android error Aapt.exe workaround for stopped working _android

Source: Internet
Author: User

When using Eclipse for Android Java programming, sometimes we get the problem of pop-up aapt.exe to stop work, although the program will not crash, but this tip often pop-up is annoying. Today, Xiao-bian is here to teach you how to solve Aapt.exe stop work

Android Exception--aapt.exe has stopped working
When Android was developed, the following exception occurred when building the project:
Aapt.exe has stopped working, no other error prompts, and this error is typically caused by a resource file or an error in an XML file.

Workaround:
Clean up, you can find the console there will be error prompts, and then according to the error prompted to resolve.


My situation:
[2013-04-20 14:35:50-bigboy] Error in a XML file:aborting build.
It's obvious that there are errors in XML, but it's not a hint of which XML file is wrong, and that's what you need to find yourself.

Finally found that when the attribute is defined, no Name attribute is added, and then it is normal.

<declare-styleable name= "Custominputcontrol" >

Method

1. Direct Shutdown error Prompt

2, click on the Eclipse menu bar window--preferences

3, click on the left-hand side of the menu of Android left small triangle, pull open the menu

4. Click Build

5, choose Silent, determine

6, check your XML file is wrong, and sometimes the lack of attributes will cause this problem, such as the name attribute is often forgotten

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.