Idea suddenly reports an error for all package names

The broken computer went into sleep mode after work. It couldn’t wake up the next day, so it had to be restarted physically

Results after opening the project, almost all package names reported errors

After some searching, we finally found a solution

Click file in the upper left corner and operate according to the following figure

If an error is reported after restart, Maven project — > Reimport

 

Similar Posts: