R.java中的文件不会自动生成的Eclipse [英] R.java file not generated automatically Eclipse

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

问题描述

可能重复:
  <一href="http://stackoverflow.com/questions/2757107/developing-for-android-in-eclipse-r-java-not-generating">Developing对于Android在Eclipse:R.java不会产生

我打扫我的项目,改变了我的项目文件name.I我得到R不能解析为一个变量。当我清理项目,什么也没有发生,我的/根/文件夹仍然empty.I试图展现能跟大家对局势的形象,但遗憾的是我不能因为我的低信誉。我希望这会有所帮助。

I cleaned my project and changed my project files name.I am getting "R cannot be resolved to a variable".When i clean the project nothing happens and my /gen/ folder is still empty.I was trying to show u guys an image of the situation but unfortunately i cant due to my low reputation. I hope this can be helpful.

推荐答案

通常情况下如果R *不能生成你有一些问题放入res /文件夹的手段。为您在资源/文件夹中的错误。

Typically if the R .* can not be generate means that you have some issue into the res/ folder. Check for errors in res/ folder.

无效的文件名:只能包含[A-Z0-9 _]

Invalid file name: must contain only [a-z0-9_.]

所有的RES / *文件名应被命名为小写字母,下划线和数字0到9之间

all the res/* filename should be named with lowercase character, underscore and number between 0 and 9

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

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