Last week I was working on a Java EE project with IntelliJ IDE.
Today: As I started up my IntelliJ 2016.1 it gave me the error:
Error Loading Project
For Maven projects:
Instructions: https://www.jetbrains.com/help/idea/maven-projects-tool-window.html
I also removed .iml file by accident. Here is how it was resolved:
If you can't recover it via the most upvoted way, you could simply copy another .iml file, paste it into the package* that requires a .iml file, and rename the .iml file to the name of the package. This should work if it is the same type (in my case UTF-8).
*Copy the .iml file by going into package files, right-clicking the package name, and press paste.
You can accomplish this in the left-hand task bar. I have prepared a video demonstration (there's no audio).
it will again compile and build .idea folder for the configuration.