The type java.util.Map$Entry cannot be resolved. It is indirectly referenced问题

本来项目是正常的,结果把JDK版本换成1.8后就报了这个错误:The type java.util.Map$Entry cannot be resolved. It is indirectly referenced。

我的解决办法就是把JDK版本换到1.6(1.7也可以):

选中项目-》右键-》java build path ->jre system library -》edit-》进入界面选择alternate jre ->在后面的installed jres..里选择jdk1.6的目录上的jre -》finish->ok。

然后就恢复正常了。

猜你喜欢

转载自blog.csdn.net/bianfulin01/article/details/44831721