Intellij Cannot resolve symbol on import

前端 未结 29 1840
耶瑟儿~
耶瑟儿~ 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 19:07

    IntelliJ has issues in resolving the dependencies. Try the following:

    1. Right click on pom.xml -> Maven -> Reimport
    2. Again Right click on pom.xml -> Maven -> Generate sources and update folders

提交回复
热议问题