R file is auto generated but by mistake i have deleted it , how to regenerate it ? Is it possible to me to add contents in it?
3 Answers
Just fix the errors that are stopping the R file from being generated (this is usually a naming issue with xml resource files for me, remember to not use caps in the xml file names), and then clean and build your project.
Also you should never add contents to the R file. Just add what you need in source and resources files and let it auto generate itself.
Comments
what to do if R.Java file is deleted after clean project ?
Go to --> Project --> clean project
1 Comment
dldnh
sometimes this doesn't help, because there are errors in files that contribute to project resources
androidand not tagged withr. Thertag refers to the programming language, not a file extension.