rocky
rocky

Reputation: 25

Android R file is not auto-generated

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

Answers (3)

Raghav Chopra
Raghav Chopra

Reputation: 527

R file does not allow you to edit or enter your own details is auto generated file.

Upvotes: 0

Jatin Barot
Jatin Barot

Reputation: 115

what to do if R.Java file is deleted after clean project ?

Go to --> Project --> clean project

Upvotes: 0

okin33
okin33

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

Related Questions