Eclipse的最近更新后给错误,遗漏R.java文件 [英] Eclipse giving error, missing R.java file after recent update

查看:179
本文介绍了Eclipse的最近更新后给错误,遗漏R.java文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经更新了我的 SDK ADT 到最新版本,我也更新了的Eclipse 开普勒最新一期后朱诺

I have updated my SDK and ADT to the latest version, I have also update the Eclipse to Kepler the latest one after Juno.

我的 ADT 版本 22.0 。当我创建一个新项目本更新程序之后,我得到的错误,说明研究不能被解析为一个变量。我已导入进口android.R; ,但它显示为未使用的导入说明不包括android.R这里;使用一个完全合格的名称每个使用,而不是

My ADT version is 22.0. After this update when I create a new project, I'm getting error, stating R cannot be resolved to a variable. I have imported import android.R;, but it is showing as unused import stating Don't include android.R here; use a fully qualified name for each usage instead.

同样的事情发生在Mac OS也与最新的更新。我试图重新命名 activity_main.xml 其他的名字,但是我的 R.java 不产生。

Same thing is happening with Mac OS also with the latest update. I have tried renaming activity_main.xml to other name, but still my R.java is not generated.

尝试了所有这些都是可能的事情。清理项目,构建整个工作空间。没有帮扶。

Tried all the things which are possible. Cleaned the project, build the whole workspace. Nothing helping.

我觉得 ADT 的Eclipse 兼容性更新后有问题。

I think ADT or Eclipse compatibility is having problem after the update.

我已经更新了我的整个的SDK,这里是截图,但同样的问题是存在的。

I have updated my whole SDK, here is the screenshot, but same problem is there.

推荐答案

更​​新到SDK工具转速后。 22,第一次,你可能需要再次重新启动的Andr​​oid SDK管理器并安装一个新的项目: Android SDK中内建工具

After updating to SDK Tools to rev. 22 for the first time, you may need to relaunch Android SDK Manager again and install a new item: Android SDK Build-tools.

安装此之后,清理你的项目和重建家园。

After installing this, clean your projects and rebuild.

这篇关于Eclipse的最近更新后给错误,遗漏R.java文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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