解决cannot be resolved to a type

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sinat_33151213/article/details/89526987

在eclipse中从GitHub clone了一个项目,clone完成之后,项目中的java文件都有红叉。

报错信息是:

cannot be resolved to a type

把网上几个方法都试过了,还是没解决。

我的解决方法:
右键项目,选择Configure,然后选择Convert to Maven Project,红叉就会没有了。

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/sinat_33151213/article/details/89526987
今日推荐