Android的R档不产生 [英] Android R file not generating

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

问题描述

我知道有很多关于这个主题的,但我无法找到一个解决我的问题,或者是重复的。

I know there are a lot of threads about this but I couldn't find one that solved my problem or is a duplicate.

所以我工作的一个应用程序,意外取得了清理我的项目的错误。这引起了我的 R.java 文件消失。我想再次清洗我的项目,再构建它,收盘日食,删除文件夹,检查所有这一切对我的XML文件中的错误,所有的。

So I was working on an app, accidently made the mistake of cleaning my project. This caused my R.java file to disappear. I tried cleaning my project again, building it again, closing eclipse, deleting the gen folder, checking all of my xml files for errors, all of that.

现在的问题是,每当我创建一个新的完全空白的应用项目,甚至没有产生一个研究自动文件。我希望还有一种方法来恢复它我原来的项目,但正如我所说似乎没有任何工作。

Problem now is whenever I create a new completely blank application project that doesn't even generate an R file automatically. I'm hoping there is still a way to restore it for my original project but as I stated nothing seems to work.

推荐答案

这可能是,如果您已删除

It could be if you have deleted

  <string name="action_settings">Settings</string>

在strings.xml中,但在菜单文件夹不删除main.xml中的文件。

in the strings.xml, but not deleted main.xml file in the menu folder.

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

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