标签:eclipse java cannot be resolved to a type
xxx cannot be resolved to a type
引言:
eclipse新导入的项目经常可以看到“XX cannot be resolved to a type”的报错信息。本文将做以简单总结。以上这些是比较常见的错误,我这里遇到的错误是文件编码导致的!
错误类似下图,这里只截取一部分:
解决方法:
左侧选中“Resource”,右侧Text file encoding选择“Other:UTF-8”,点击“Apply”按钮。
xxx cannot be resolved to a type 错误解决方法
标签:eclipse java cannot be resolved to a type
原文地址:http://blog.csdn.net/testcs_dn/article/details/39643119