出现错误cannot be resolved or is not a field

2024-11-01 14:45:14

1、首先找到出现错误的文件,在eclipse中打开项目的目录树,并找到出现错误的文件;

出现错误cannot be resolved or is not a field

3、将鼠标移动到出现错误的程序位置,这时eclipse会出现让你创建此变量;

出现错误cannot be resolved or is not a field

5、创建完变量后,保存R.java文件,系统无法保存,并提示R.java was modified manually! Reverting to generated version!。

出现错误cannot be resolved or is not a field

7、在activity_fullscreen.xml文件中恢复layout相关定义,也可从其它项目复制,保存后,fullscreen_content_controls cannot be resolved or is not a field及dummy_button cannot be resolved or is not a field错误消失。

出现错误cannot be resolved or is not a field
猜你喜欢