eclipse 导入项目出现红项目上出现红叉叉

# 1、jdk版本问题

> 右击项目名 > build path > config build path > Libraries > 双击JRE...

> 改为默认JRE > 应用并保存


# 2、注解前有红叉叉:Syntax error, annotations are only available if source level is 1.5 or greater

> 解决方法参考下面帖子

> https://blog.csdn.net/zhanghong0603/article/details/51941626

猜你喜欢

转载自blog.csdn.net/dirtyman_/article/details/80851016