Java / Eclipse - 没有更多的R文件 [英] Java/Eclipse - No more R file ever

查看:147
本文介绍了Java / Eclipse - 没有更多的R文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse上工作了好几个小时,即使在互联网上进行了许多搜索之后,我还没有找到解决问题的方法:我的项目中没有更多的R.java文件。

I'm on Eclipse for hours now and I didn't found a solution yet for my problem even after many searches on internet: I have no more R.java file on my projects.

刚刚创建或在我的旧项目中,我没有R文件,我尝试了很多解决方案(卸载,重新安装Eclipse,清理我的项目,检查我的所有XML,修复问题android工具等...)

On just created or on my old projects, i don't have R file anymore and I tried so many solutions (uninstall, re-install Eclipse, clean my project, check all my XMLs, fix problem with android tool and so on ...)

请问有人可以告诉我在这种情况下该怎么办?

Please someone can tell me what to do in this case?

推荐答案


嘿如果你刚刚更新到ADT Rev 22:

Hey If you just updated to ADT Rev 22 :

我也有问题。 Tools文件夹中有一个新的组件,名为Android SDK Build-tools,需要安装。

I had the problem too. There is a new component in the Tools folder called "Android SDK Build-tools" that needs to be installed.

步骤1

打开Android SDK管理器

Open the Android SDK Manager

步骤2

选择新添加的构建工具并安装。 (如果问题停留然后转到项目属性=> Java构建路径=>订单和导出并检查 Android私人库,然后清理和构建项目。

Select the newly added Build Tools and install. (If problem stays then go to Project Properties => Java Build Path => Order and Export and check Android Private Libraries, then clean and build project.

可能需要重复此过程,请在更新后重新启动SDK Manager,并确保它看起来像这样(所有安装的工具):

It may be necessary to repeat the process, restart the SDK Manager after the update and make sure it looks like this (all tools installed):

更多信息: https://groups.google .com / forum /?fromgroups =#!topic / android-developers / rCaeT3qckoE%5B1-25-false%5D

这篇关于Java / Eclipse - 没有更多的R文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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