Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recover the R.java file

While compiling my project, I lost my R.java file.

I recreated the new project and replaced all my .xml files, .java files, and all my images in the project, but in that project I also lost my R.java file.

What should do to solve this problem? Can I recreate my R.java file for the project?

like image 431
dilipkaklotar Avatar asked Jun 12 '26 14:06

dilipkaklotar


1 Answers

The R.java file is automatically generated by the Android tools ; so, you should always be able to re-generate it.

In this kind of case, forcing a clean and full-rebuild of the project generally helps.

In Eclipse, try :

  • Project > Clean
  • And choose to clean your project.
like image 146
Pascal MARTIN Avatar answered Jun 15 '26 12:06

Pascal MARTIN



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!