2

I have just been working on my android project in eclipse and all of a sudden this error appeared, my manifest file matches the name of my application etc.............!

What I have noticed is that that the auto generated Java files are missing from the gen folder its completely empty now.

orginally I had to create a default.properties file as there wasn't one present and it was working fine uptil the point i tried to add a button into one of my xml files. Tried to clean project too and that hasn't resolved the issue either.

Any ideas?

3 Answers 3

2

This error is usually caused because you have an error in one of your resources. Check to make sure that there are no errors in the xml resource files or the drawable directories. In the list of errors you are seeing you should look at the top most error and see if you can resolve this. What tends to happen is that an error in one of your resource files is causing the generation of the R file to fail. Once the R file fails to generate you will see a huge list of errors but they are all caused by the one error.

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

3 Comments

I have an error in one of my xml files which is saying : no resource found that matches the id@ back_Button which is defined in one of my classes where i add the button, delete all the change I made and the problem still persists
Eclipse should be auto-cleaning your projects but it may help to do to Project->Clean
I've fixed it now, can't answer question due to rep, but its all sorted now.
0

Remove the gen folder from Project Name ->Properties -> Java Build Path ->Source. You will get an error message after removing it. Now Add the gen folder again in the same way. You can now see the R class. If the problem remain, then try to remove both src and gen; add them again.

Comments

0

use "Project" -> "Clean" in Eclipse to re-generate your R file and fix other android issues. ...sometimes this helps a lot! ;D

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.