R.java will be automatic .
First of all, you solve other errors of your project that are not related to R.java .
When you solve all other errors, your R.java will be created automatically.
If you still cannot remove the errors.
Just comment code with errors except R.java
Then, one by one, delete the comments and resolve your mistakes.
Hope this helps you ...
source share