Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R.java was modified manually! Reverting to generated version

Tags:

android

I added one xml file in layout. After that this error is coming. But the problem is I haven't touched R.java file. Now in my new activity i m going to set its content view as my newly created xml file, but when i m doing R.layout., the newly created xml is not coming in suggestion. Do anybody have any idea how to correct this. I have cleaned my project several times but it is not working.

like image 892
Amar Avatar asked Dec 27 '22 00:12

Amar


2 Answers

Delete R.java and let eclipse regenerate it, then project --> clean will fix it.

like image 192
R9J Avatar answered Feb 22 '23 22:02

R9J


Check if you have any existing errors in your code, if yes correct it and then try refreshing and building your Project.If your Project is properly build,you will get the new xml file in suggestion

like image 24
Nargis Avatar answered Feb 22 '23 22:02

Nargis