为什么不R.java找到我的布局? [英] Why doesn't R.java find my layout?

查看:194
本文介绍了为什么不R.java找到我的布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

图片说明这一切。虽然我有一个 task.xml R.java 类不能找到它。这是我的每个列表项的看法。有人能告诉我为什么?

The image shows it all. Although I have a task.xml, the R.java class can not find it. This is the view for each of my list items. Can someone please tell me why?

推荐答案

我觉得在你的codeü必须有进口.R文件...
例如进口com.d.maulik.R ..删除此导入,然后保存并Ctrl +空格键..这将工作我猜。

I think in your code U must have imported .R file... For example import com.d.maulik.R .. Remove this import and then save and ctrl+space.. this will work i guess.

这篇关于为什么不R.java找到我的布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆