R.layout.menu不能得到解决layout、menu

由网友(男神)分享简介:一切都工作正常更早。然后我的一个新的XML文件添加到我的布局。现在,我的一个类时的setContentView点(R.layout.menu)给了一个错误。 Eclipse正在告诉我,R.layout.menu无法得到解决。我不明白为什么;在我的布局文件夹中我有一个名为菜单布局定义。Everything was wo...

一切都工作正常更早。然后我的一个新的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.

阅读全文

相关推荐

最新文章