R或ID无法解析 [英] R or id Cannot be resolved

查看:132
本文介绍了R或ID无法解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个问题,我在Eclipse Android源。我试图导入com.R;但只有R-无法解析消失。我得到的ID现在不能得到解决。我发达在Eclipse与Android几个月前也是如此,但是没有解决不了的问题的ID。
我能做什么?这是一个新的Eclipse安装的Andr​​oid + ADT +模拟器+如...

I have this problem with my android source in Eclipse. I tried to import com.R; but only the R cannot be resolved disappeared. I got the id cannot be resolved now. I "developed" in Eclipse with Android a few months ago too, but there wasn't the ID cannot be resolved problem. What can I do? It is a fresh installed Eclipse+Android ADT+Emulator+ eg...

推荐答案

你确定你不是在导入 android.R 而是,你产生的R档,即 com.myproject.R

Are you sure you're not importing android.R but instead, your generated R file, i.e. com.myproject.R?

这篇关于R或ID无法解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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