Android开发:“R cannot be resolved to a variable”的另一种解决方法
2013-04-09 15:25
519 查看
今天开发中遇到了“R cannot be resolved to a variable”这个问题,上网搜了下,基本都说是clean下工程,或者重新导入,或者刷新工程就可以解决。以上方法我试了都没能解决问题,我的R.java是生成了的,没什么问题。
最后才发现,原来原因是R.java的包名是com.xiuzisoft.test, 而src的包是com.xiuzisoft.Test,由于大小写敏感,所以找不到R的位置了,改成一致,即解决了问题。
最后才发现,原来原因是R.java的包名是com.xiuzisoft.test, 而src的包是com.xiuzisoft.Test,由于大小写敏感,所以找不到R的位置了,改成一致,即解决了问题。
相关文章推荐
- Android开发:“R cannot be resolved to a variable”的解决方法
- android开发出现R cannot be resolved to a variable 问题解决办法之一
- Android导入项目出现“R cannot be resolved to a variable"错误的解决方法
- r cannot be resolved to a variable 问题解决 / r.java文件没有自动生成 分类: Android安装及配置 2014-06-22 18:03 141人阅读 评论(0) 收藏
- Mac OS X配置android过程中遇到“R cannot be resolved to a variable”问题的解决
- Android开发中使用Eclipse创建工程后提示The project cannot be built until build path errors are resolved问题的解决方法
- [Android开发] The import com.google cannot be resolved解决方法
- [Android开发] The import com.google cannot be resolved解决方法
- Android开发中出现cannot be resolved to a variable错误,也就是R文件不能生成。
- Android "R cannot be resolved to a variable" 解决方法
- 在Android总出现R cannot be resolved to a variable怎么解决?
- 安卓开发 Button cannot be resolved to a type 解决方法
- Android开发 R cannot be resolved to a variable问题的分析
- Android: R cannot be resolved to a variable 解决办法
- Android出现“R cannot be resolved to a variable"
- 友盟分享中新浪分享回调时程序崩溃的解决方法 application cannot be case to android.app.Activity
- 【android调试】R cannot be resolved to a variable
- R文件没自动生成的解决办法(R cannot be resolved to a variable)
- sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class异常解决方法
- xxx cannot be resolved to a type 错误解决方法