1

I created a ids.xml file in res/values folder . when I tried to add any id in it . I got the following error:

aapt.exe has encountered a problem and needs to close.  We are sorry for the inconvenience.

and when i clean and build project.i again got this error. any suggestion..?

Update: when i m creating ids.xml file, eclipse create this file without having any error. but when i m trying to add something i gives me crash.

   <?xml version="1.0" encoding="UTF-8"?>
<resources>
    <item type="id" name="auto_focus" />
</resources>

when i added auto_focus i got the error

1
  • I am not able to create ids.xml file.when i create i got this aapt.exe has encountered a problem and needs to close. We are sorry for the inconvenience Commented Dec 1, 2011 at 8:05

4 Answers 4

3

It happens to me when I delete not needed string resource name="action_settings"

Just write it back and everything was fine

Sign up to request clarification or add additional context in comments.

Comments

2

I have the same problem.Check out all your .xml files and make sure nothing wrong with them.

Comments

0

Do You have verbose output enabled in Your Preferences>Android>Build>Build Output?

If so, please change it to Normal. Probably it is the issue.

6 Comments

i did the same but again getting same problem.
Running Project>Clean didn't help either? Can You send logs before this crash? Maybe some other resources are incorrect?
if i clean the project , it does not generate R.java file.
And do You have something logged on console before that? If turning off verbose mode doesn't help turn it on again and provide us logs :)
i exaclty dont know what the problem is.
|
0

This also happened to me once, when i added a existing file to my project named pin-1.png. then I renamed my file to pin1.png, and thats solves my problem.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.