Package doesn't exist error in intelliJ

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

    None of the 13 existing answers worked for me. However, I could resolve the issue by first removing all modules:

    1. open File > Project Structure...,
    2. go to Modules tab,
    3. select all modules and press the remove button,

    then removing all remaining Maven modules from Maven tool window:

    1. select all modules,
    2. right click on them,
    3. press Remove projects,

    and then adding them again in Project tool window:

    1. right click on root pom.xml,
    2. press Add as Maven project,

    now unignoring any ignored modules from Maven tool window:

    1. select all ignored (grey) Maven modules,
    2. right click on them,
    3. press Unignore,

    and finally rebuilding using Build > Rebuild project. This assumes that a mvn clean install already happened.

提交回复
热议问题