Android R.java 引用 facebook 后消失
我按照 facebook 的说明进行操作,在添加对 facebook 库的引用之前一切都很好。正如标题所提到的,R.java就这样消失了,导致整个项目无法运行。
我尝试删除 gen 文件夹,清理项目,重建它,但没有效果。
该项目在没有facebook的情况下运行,但我必须实现facebook功能才能完成该项目。有人可以帮忙吗?
I followed the instructions by the facebook, everything is good before adding reference to the facebook library. As mentioned in the title, the R.java just disappeared, making the whole project unable to run.
I tried to delete the gen folder, cleaned the project, rebuilt it, but it did no good.
The project runs without facebook, but I have to implement the facebook function to get the project done. Anyone could help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能现在有两个 R.java,一个在你的项目中,另一个在 facebook 中。尝试手动放回导入,例如 com.yourpackage.R 并查看是否可以解决问题。
it is probably that there are now two R.java, one in your project and the other one in facebook. Try to manually put the import back, like, com.yourpackage.R and see if that fixes the problem.