R.layout.menu不能得到解决 [英] R.layout.menu cannot be resolved
本文介绍了R.layout.menu不能得到解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
一切都工作正常更早。然后我的一个新的XML文件添加到我的布局。现在,我的一个类时的setContentView点(R.layout.menu)给了一个错误。 Eclipse正在告诉我,R.layout.menu无法得到解决。我不明白为什么;在我的布局文件夹中我有一个名为菜单布局定义。
Everything was working fine earlier. I then happened to add a new xml file to my layouts. now, one of my classes is giving an error when setContentView points to (R.layout.menu). Eclipse is telling me that R.layout.menu cannot be resolved. I can't figure out why; I have a layout called menu defined in my layout folder.
有什么建议?
推荐答案
你做一个项目>清除?有时候,你不得不让Eclipse中再次生成R档。
Did you do a Project > Clean? Sometimes you just have to let Eclipse generate the R file again.
这篇关于R.layout.menu不能得到解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文