R能够在没有我的Andr​​oid项目中解决的问题 [英] R cannot be resolved issues in my android project

查看:114
本文介绍了R能够在没有我的Andr​​oid项目中解决的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经清理了的项目,之后把它清理干净。

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.

另一种可能是你的的Andr​​oidManifest.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.

这篇关于R能够在没有我的Andr​​oid项目中解决的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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