Package doesn't exist error in intelliJ

后端 未结 25 1258
心在旅途
心在旅途 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:53

    It's a very annoying problem which happens quite often. Especially after switching to a different git branch. It wasted me way too much time to troubleshoot this kind problem. I have tried all the methods above. But I can't find a reliable way. Here I just summarize those steps which could help in my situation. Jetbrains, please fix this issue to save your customer's precious time.

    1. Make sure do a success command line build (If UT failed, please ignore UT by using -Dmaven.test.skip=true.
    2. In the "Maven Projects" view, try to use "reimport" all the maven project.
    3. In the file menu, use "Invalidate Caches"
    4. Delete .idea folder, basically create the workspace from scratch. (That's the only reliable way can solve this issue)

提交回复
热议问题