问题
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.
回答1:
Please check the console section. Sometimes there is a JAR mismatch. The JAR in the library may have a different size or signature compared to the one in your project. You may have to replace the JAR files to have a consistent copy or Delete one of them.
回答2:
I was able to fix this by updating my build-tools...........
来源:https://stackoverflow.com/questions/26496984/cannot-get-an-r-java-file-to-generate-after-importing-appcompat-v7-into-eclipse