R能够在没有我的Android项目中解决的问题
我已经清理了的项目,之后把它清理干净。
I already cleaned the project , and set the automatic build after clean it up
但也有关于'R不能解析为一个变量
but there are 50 errors regarding the 'R cannot be resolved to a variable'
如何解决这个问题?我真的很困惑...
how to fix this issues ? i really confused ...
在
此错误通常是由两种这些可能性导致的:
This error is usually caused by either of these possibilities:
-
最有可能:你在任何布局文件的语法错误(例如,位于资源\\布局下的文件的项目的文件夹)。这样做的坏事是,Eclipse将不会提醒你,告诉你什么是错误,所以你必须通过人找语法(可能是一个无与伦比的标签,一个无与伦比的属性等)去一个,修复问题。
The most probable: You have a syntax error in any of your layout files (i.e., the files located under the res\layout folder of your project). The bad thing of this is that Eclipse won't warn you and tell you what's the error, so you'll have to go one by one looking for the syntax (probably an unmatched tag, an unmatched attribute, etc.) and fix the issue.
另一种可能是你的的AndroidManifest.xml
文件中的语法错误。同去这里,检查是否有语法错误。
The other possibility is a syntax error within your AndroidManifest.xml
file. Same goes here, check it for syntax errors.
显示这两个会解决您的问题。
One of these two will fix your issue.