Android R.java 引用 facebook 后消失

发布于 2024-12-29 10:46:41 字数 187 浏览 6 评论 0原文

我按照 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人海汹涌 2025-01-05 10:46:41

可能现在有两个 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文