I have a project, it is a Gradle project, and everytime I close Intellij it deletes the src files, they still exist in the directory just not in the idea project.


I thing that is deal with IntelliJ cache. Try to refresh Gradle configuration. Open Gradle Tool Window and click refresh button .

I had the same issue with Maven and refreshing was helpful for me. Also may be useful system cache clean up.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.