Class 'myClassName' already exists in package 'myPackageName'

余生长醉 提交于 2021-02-18 12:06:02

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!