Intellij Cannot resolve symbol on import

前端 未结 29 1889
耶瑟儿~
耶瑟儿~ 2020-11-30 18:10

This problem happens intermittently for different libraries and different projects. When trying to import a library, the package will be recognized, but the class name can\'

29条回答
  •  鱼传尺愫
    2020-11-30 18:51

    Run this command in your project console:

    mvn idea:idea
    

    Done. Had this issue many times. Tried 'Invalidate Cache & Restart' and all other solutions. Running that command works perfect to me. I'm currently using IntelliJ 2019.2, but this also happened in previous versions and solution worked as well.

提交回复
热议问题