R无法在eclipse android项目中解析
这是我第三次在 eclipse 中设置我的 android 环境(针对不同的计算机)。 这次我无法让它工作,有些东西没有正确设置或者我忘记了一些东西。
gen 文件夹没有生成,当然也没有 R.java 文件。我在网上到处搜索都找不到解决这个问题的方法。这适用于创建新项目和使用 android 示例项目。
不,我没有导入 android.R,多次重新启动 eclipse,清理项目,构建项目,没有要安装的新更新。 预先感谢,任何帮助都会很棒!
This is my third time setting up my android env in eclipse (for different computers).
This time I cannot get it to work, something didnt get set up correctly or I'm forgetting something.
gen folder is not getting generated and of course no R.java file. I have searched online everywhere and cannot find a solution to this problem. That applies to creating a new project and using android sample projects.
No I do not have import android.R, restarted eclipse mult times, did clean project, build project, no new updates to be installed..
Thanks in advance, any help would be great!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这通常是由于 Eclipse 中的一个怪癖造成的。通常(但并非总是),它可以通过这个神奇的调用来解决:按 ctrl+shift+O,然后按“Project Clean”(先取消选中“Buildautomatic”),然后按“Build All”并查看它是否有效。
This is usually due to a quirk in Eclipse. Often, but not always, it is solved by this magic invocation: Pressing ctrl+shift+O, then "Project Clean" (uncheck "Build automatically" first), then "Build All" and see if it works.
尝试再次关闭并启动 eclipse。
TRy closing and starting eclipse again.