I have been grinding at this for hours on end. I seem to do everything right according to google and other answers to this same question, yet I still get no R.java file in my project. I appear to not have any errors in any of my resources.
as soon as I remove the library reference in my project, the R file is generated again. The errors in the project are simply due to the lack of an R.java file.
I was able to fix this by updating my build-tools...........