Package doesn't exist error in intelliJ

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

    In my case the problem was that there was a different repository directory configuration in IntelliJ and in settings.xml file.

    Check both repository directories are the same:

    IntelliJ (File > Settings > Build,Execution,Deployment > Build Tools > Maven )

    settings.xml (usually in C:\Users\myuser\.m2 or /home/myuser/.m2)

    
    
      ...
      C:\Users\myuser\.m2\repository
      ...
    
    

    After fixing directories run:

    1. Generate Folders and Update Sources for All Projects

    1. Reimport all maven projects

提交回复
热议问题