R.java文件没有生成 [英] R.java file not getting generated

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

问题描述

我不能在我的一半构建的Facebook应用程序中的R.java问题。我选择了自动生成选项,我清理了我的项目。我做了所有推荐的解决方案来生成我的R.java文件。但是还没有成功。我的gen文件夹中有2个R.java。我已经把屏幕截图更好地理解了。



解决方案




$ b

所有的按钮, / div>

尝试这样:
我有类似的问题R.java没有发现错误它实际上没有生成



我做了几乎所有的事情在论坛中的不同链接中说了



我做了什么



1.我将项目从工作区并重新导入它,这样做后,当项目启动它开始给我SDK未找到的错误,即使我被给了正确的Android SDK路径。我正在使用eclispe ADT,你可以从android站点本身找到。



2.我不知道为什么ADT插件显示需要更新甚至最新的ADT 21.1被安装。我试图更新,那么我不知道工具文件夹从我的SDK得到删除后那么它开始在SDK文件夹中找不到工具文件夹,所以我需要再次下载SDK,并将ADT插件更新到21.1。



3所以我想一些时间在ADT插件中存在问题,所以保持更新正确或重新安装它将工作,如果没有其他工作。


I'm unable to the R.java problem in my half built Facebook app. I have selected the "Build automatically" option, I cleaned my project. I did all the recommended solutions to generate my R.java file.But still no success. I have 2 R.java in my "gen" folder. I have put a screenshot for better understanding.

all the buttons, textview and imageviews are not being recognized.

解决方案

Try this: I have similar problem R.java not found error it is actually not getting generated

I did almost every thing which are said in the different links in the forum

What I did

1.I delete the project from the workspace and re import it,after doing that when the project launched it start giving me the SDK not found error even I was given the correct Android SDK path.I am using eclispe ADT which you can find from android site itself.

2.I don't know why ADT plugin was showing it needs to update even the latest ADT 21.1 is installed .I tried to updated that then ,i don't know how tools folder from my SDK get deleted after that .It start shouting tools folder not found in SDK folder .So I need to download the SDK again and update the ADT plugin to 21.1 .

3 So I think some time there is problem in ADT plugin ,So keep it update correctly or reinstall it will works if nothing else works .

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

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