Cannot get an R.java file to generate after importing AppCompat v7 into Eclipse

﹥>﹥吖頭↗ 提交于 2020-01-16 03:45:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!