Intellij Cannot resolve symbol on import

前端 未结 29 1854
耶瑟儿~
耶瑟儿~ 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:12

    Had the same problem till I noticed that the src folder was marked as root source instead of java! Changing to only the java (src/main/java) to be the source root solved my problem

提交回复
热议问题