R.java文件是干净后我的项目消失 [英] R.java file is vanish after clean my project

查看:145
本文介绍了R.java文件是干净后我的项目消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作我的Eclipse项目,但增加了一些文件后,清洁我的项目,但经过清洁R.java文件自动从我的项目和放大器消失;很多误差对我的项目。

I'm working on my project in eclipse , but after adding some files I clean my project, but after clean the R.java file automatically vanish from my project & lots of error on my project.

我再次试图清理我和放大器;建造它,但我的R.java文件不能回来了。

again I tried to clean my & build it but my R.java files can't back.

我会在这个时刻做什么?

What I'll do at this moment?

推荐答案

如果R.java没有被自动创建,然后有一个错误的地方在你的XML。三重检查一切。

if R.java is not being automatically created then there is an error somewhere in your xml. Triple check everything.

检查您的XML资源(特别是这些最近编辑)的错误和语法来错误。当你里面有这些文件中的一个错误,R类自动生成将中止。

Check your XML resources (especially these recently edited) for mistakes and sytax errors. When you have an error inside one of these files, the R class autogeneration will abort.

想必你有XML错误。

编辑:

其他可能的原因:在您的资源文件名大写字母;在您的资源文件名无效字符(只能使用A到Z,0到9(而不是第一个字符)和_);开头的号码的文件名

Other possible causes: Upper Case Characters in your resource file names; Invalid Characters in your resource file names (you can use only a...z, 0...9 (not as first character), . and _); File names starting with a number

由于明镜魔像

这篇关于R.java文件是干净后我的项目消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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