的Java / Eclipse的 - 没有更多的R档永远 [英] Java/Eclipse - No more R file ever

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

问题描述

我在Eclipse上几个小时,现在我即使在互联网上众多的搜索没有找到一个解决办法我的问题:我有我的项目,没有更多的R.java文件

在刚创建或在我的旧项目,我没有R档了,我尝试了许多解决方案(卸载,重新安装Eclipse,清洁我的项目,检查我所有的XMLS,与Android工具等解决问题对...)

请有人能告诉我该怎么做在这种情况下?

解决方案
  

嘿,如果你刚刚更新到ADT启22:

我有问题了。有一个名为 需要安装Android SDK中内建工具中的工具文件夹中的新组件。

第1步

打开Android的SDK管理器

第2步

选择新添加的生成工具并安装。 (如果问题停留,然后去项目属性=> Java构建路径=>订单与出口和检查 Android的私人图书馆,然后清理并生成项目。

这可能需要重复这一过程,在更新后重新启动SDK管理器,并确保它看起来是这样的(安装了所有的工具):

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

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.

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?

解决方案

Hey If you just updated to ADT Rev 22 :

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

Step 1

Open the Android SDK Manager

Step 2

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.

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):

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

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

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