IntelliJ Can't resolve Q Class(QueryDSL). (Cannot import, Cannot build) I use IntelliJ, and it can't resolve(import) Q Class in my projects, even though Classes are generated by gradle. My thing can't find it. I spent many hours and finally I solved it after remove Query DSL genarated folder in .gitignore. I don't know why but after remove it in .gitignore file and rebuild, IntelliJ found it.