In the development of eclipse, always lack of r files for no reason, so that the whole project is scrapped, after the online search for information and now do a tidy.
1. Right-click your Android project-->android Tools-->fix project Properties.
2, clean up the project: Use the menu project-->clean--> Select the items that need to be cleaned
This is the simplest way, but I don't think it's an egg.
The primary r file is missing because of an error in applying XML. So please carefully check your XML file There are no reference errors, such as XML file name is not all lowercase ...
General R file is missing the performance is login_btn= (TextView) Findviewbyid (r.id.login_textview_finish), such as the code, R below the red line, then if you import a
Android. R goes in, and then it's the red line behind the login_textview_finish. This is not right, you first have to delete the import ANDROID.R first.
Then right-click on the project, Properties--java Build Path---Look inside you have not imported some of the mess jar, there is no duplicate guide jar, the useless deleted.
Then clear, the problem should be solved.
There is a legendary big trick, just find a project, copy its R file. However, I also feel that this method does not use any eggs ...
There is any good solution, everyone please private messages I ...
In fact, I am a small white one, above just for reference, what error please the big God Spur.
Android Eclipse Android Project missing R file workaround