I'm brand new to Eclipse for Android Developers (Eclipse Neon in Ubuntu), and upon creating my first project, I was flooded with errors. It appears that the source of the errors was that the R.java file was never generated.
I've attempted to clean the project and restore from local history (nothing was ever deleted so this accomplished nothing). I've been unable to find a solution to my R.java file never existing in the first place, and help would be very much appreciated.
The Main Reason behind R.java File not generated is :-
First of all i think that is the Problem of your XML file.if you Leave any Mistakes/Errors on your XML file.
Then Eclipse/Android Studio will never generate an R.java.
That is the Solution of your Problem.
Hope this help to generate your File..(: