admin管理员组

文章数量:1534817

the import cannot be resolved问题可以通过以下方法解决

    • 问题详细
    • 解决方案

问题详细

eclipse 导入的项目后,src源码类文件代码的import xx.xxx.xx 识别不了其他包的类。提示the import can not be resolved

解决方案

  1. project-clean ,重新编译项目;

  2. 引入源码文件, 右键项目->build path -> Config build path-source-add folder-选中每个module中的src;

  3. 重新导入依赖jar包 ,右键项目->build path -> Config build path- Libraries-> remove后,重新导入;

本文标签: 可以通过方法importresolved