The R class is generated every time you recompile the project (if changes are necessary), and you should not worry about it. Moreover, you should not even transfer the R file to your version control system, since it must be generated during the build process.
I advise you to check the "compile before launch" box (eclipse should have it in the launch configuration), so the R file will be restored before the application starts.
source
share