R.java file never generated

255 views Asked by At

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.

2

There are 2 answers

0
Sagar Aghara On

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..(:

0
shivampip On

Try to create project Again (Delete it and create New) Either your Eclipse is not installed properly. Any file is missing in Eclipse (While installing it, Antivirus removes some important files, So install Re-install Eclipse keeping your antivirus paused.