factorOne cannot be&nb…

factorOne cannot be resolved or is not field

现象描述:

Eclipse的使用时会在代码处出现警告factorOne cannot be resolved or is not field

原因是R.java中没有生成相应的静态类或者你没有正常导入R.java

解决方法:

针对第一种情况:删除R.java让系统自动重新生成R.java

针对第二种情况:导入R.java(项目名bell具体根据自己的项目而更改)


import com.example.bell.R;

posted on 2016-09-04 18:01  在路上,赢在自己  阅读(90)  评论(0)    收藏  举报