Have had this happen alot, I forget to select the .java file before running an android app from Eclipse.
I have a .xml selected, press Run and the projectfile breaks.
How do I fix it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It usually adds an unnecessary file next to the xml file. You can just delete this file – this will solve the problem. For example, say you have an mylayout.xml file in res/layouts, and you accidentally run it – result will be a mylayout.out.xml file in res/layouts (next to original file). Just delete it. If there’s still an error, rebuild the project (project->clean, and then project->build if build automatically isn’t checked).