Error loading project in Android Studio: cannot load modules
The best way to get rid of this problem is below:
1- close the project
2- close Android Studio IDE
3- delete the .idea directory
4- delete all .iml files
5- open Android Studio IDE and import the project again
Delete the *.iml files and rebuild the project (Build > Rebuild), it should be ok after that.
Removing modules.xml
file under the /.idea
folder solved my issue.