项目里很多import导入的类出现红色波浪线,提示the import  xxx  cannot be resolved

这是因为检出的项目使用的jdk与本地jdk不一致的导致的。

解决步骤:

右击项目名---buildpath--configure build path-----Libraries---remove--add Library--JRE system  Library --next----选择Execution Environment(保持与workspace一致即可)

the import xxx cannot be resolved


the import xxx cannot be resolved

相关文章: