Reputation: 25
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?
Upvotes: 2
Views: 729
Reputation: 527
R file does not allow you to edit or enter your own details is auto generated file.
Upvotes: 0
Reputation: 115
what to do if R.Java file is deleted after clean project ?
Go to --> Project --> clean project
Upvotes: 0
Reputation: 144
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.
Upvotes: 4