问题
I suddenly started facing a strange issue while working on my Grails application using IntelliJ. I have different domain classes and some other classes under src/groovy
. When I open a class file to make some changes, I get an error that this class already exists in package which I don't have. I tried to rename the class using refactor but after that I still get the same error.
Can anybody suggest what's wrong here or if I did something wrong?
回答1:
Try to "Clear" you project and build again.
来源:https://stackoverflow.com/questions/24301695/class-myclassname-already-exists-in-package-mypackagename