安装Android的ADT 14后:" R解决不了" [英] After installing Android ADT 14: "R cannot be resolved"

查看:112
本文介绍了安装Android的ADT 14后:" R解决不了"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新到ADT 14后,我的项目,现在前身精建成充满错误。我到处都引用R(R.string.mystring等),它说:R解决不了。

After updating to ADT 14, my project which formerly built fine now is full of errors. Everywhere I reference "R" (R.string.mystring, etc.) it says "R cannot be resolved".

我没有任何地方android.R进口。

I do not have android.R imported anywhere.

有什么在我的根文件夹中。

There is nothing in my "gen" folder.

清洁项目刚刚透露ALL我用一个错误标记他们引用R的地方。

"Cleaning" the project just revealed ALL the places I reference "R" by flagging them with an error.

有什么建议?

推荐答案

这个问题通常是由 android.R 引起的导入,为你的状态,但由于这不是你的情况的问题,我怀疑你已经在你的资源文件之一得到了一个XML错误。

The problem is usually caused by android.R being imported, as you state, but since that's not the problem in your case, I'd suspect you've got an XML error in one of your resource files.

这篇关于安装Android的ADT 14后:" R解决不了"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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