Package doesn't exist error in intelliJ

后端 未结 25 1256
心在旅途
心在旅途 2020-11-28 20:07

I\'m trying to use the barbecue barcode printing library. I have successfully added the library to IntelliJ through project structure add library. Then I imported the packa

25条回答
  •  失恋的感觉
    2020-11-28 20:52

    In case you're facing very weird "unable to resolve java, sun packages problem", try the following:

    1. Open Project Structure and change Project SDK to another version, example: java 8 -> 9; 11->13, etc, and wait until it re-index all jdk's jars. Switch between jdks with same version may not work! (Ex: jetbrains jdk11 -> openjdk 11)
    2. Open a new project (or create a empty one); pause new project's indexing; close the old one; start indexing; open the old project and pause the new project's indexing and wait.

提交回复
热议问题