The class library already exists in the system, but the class prompt is still not found
- close the project in intellij .
- close intellij .
- go to the project folder and delete the
.idea
folder - restart intellij and open the project (wait for the indexing to finish) and it would work.