r file in the Android development, occupy in the important position, the contents of the system automatically generated, can not be arbitrarily modified, but in the development process, is always unknown lost, here summarize the repair method
#. In Eclipse you can(1). If you can't confirm the XML file or picture file without errors, it is best not to clear, because just a clear, then the R file will be gone, and in the numerous XML files found in the error is not an easy thing to do. (2). If the R file has been lost, you can right-click on the project-"Android tools--> Fix Project Properties, (3)." Check the XML file and picture, check the XML file for errors, the picture is case correct, the picture in Android The name can only start with a lowercase letter. If you check for errors, correct them, recompile them, the R file will be generated automatically at this time. (4). Copy the XML file, and then re-compile it if the XML file is guaranteed to be correct.
#. In the Androidstdio (1). Right click on the project name, the Make Module "project name" appears, will automatically fix
(2). If unsuccessful, follow Eclipse's other practices.
R file missing in Android development