I am new to Intellij IDEA. I recently upgraded Intellij from 2021.1 to 2021.2. After indexing, all the fields and methods are not recognized. When we hover the mouse over the field I get a message stating "cannot resolve symbol". I found this which says to delete the main.iml. However, I'm not able to find main.iml but <project_name>.iml is present under .idea folder. By deleting the <project_name>.iml the whole project structure is destroyed. Where do I find main.iml file.
PS: Mine is neither a Maven nor a Gradle project. I'm using ANT.