When I start my android project in eclipse the solution comes with errors

Asked

Viewed 1,545 times

0

When I start a project in the eclipse my solution already comes with errors. How do I fix this?

Erro do Eclipse

Is there any way I can fix this once and for all?

Edit: Error code: Description Resource Path Location Type error: Error Parsing XML: no element found abc_activity_chooser_view_list_item.xml /appcompat_v7/res/layout line 17 Android AAPT Problem

Codigo

  • True, the error of "R cannot be resolved to a variable" means that the resources were not "compiled" (when Resource is compiled, it generates a class called R), due to the error of Parsing "Error Parsing XML: no element found" and "Premature end of file". Include this XML file in the question.

  • From the image I get the impression that the error occurs in the XML of a file that starts with "abc_activity_chooser_view_list_ite..." which belongs to the library appcompat_v7 (that theoretically should not present errors). It is not one of those problems that is solved with a clear in the project?

  • I think a clean one won’t work in this case. I would recommend reinstalling the Support Libraries and the Support Libraries Repository using SDK Manager. There may have been some data corruption while downloading them.

  • So if at last if it does not work, it will be that if I uninstall everything and reinstall dps will work normally?

1 answer

1

Follow the promptings here Support Library Setup and add the Libraries concerning the v7-appcompat. Follow the steps to download Libraries, if you have not already done so, then follow the instructions in Adding Libraries with Resources.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.