如何解决R无法解决错误 [英] how can solve R can not be resolve error

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

问题描述

我使用eclipse并创建一个工作正常的活动但是在三到四次之后相同的活动显示错误





R无法解析变量



i using eclipse and create a activity which was working fine but after three to four time the same activity showing error


R can not be resolve to a variable

setContentView(R.layout.activity_login);

//那个R. id .....





i尝试很多方法,但问题是相同的还有一件事,它不是在创建R.java文件文件夹可能是什么原因

提前感谢

// that R.id.....


i try many ways but problem is same and one more thing it's not creating R.java file in gen folder what can be the reason
thanks in advance

推荐答案

转到Build>> Clean Project>>运行您的应用
Go to Build>>Clean Project>> Run your app


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

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