I faced this when importing projects from online git repos directly using Android studio, turns out the iml file in .idea modules.xml reference, were not being generated.
It probably means your project workspace settings file is corrupted by whatever reason and Android Studio could not read it. Mine is probably because of BSOD, because Windows. To solve the error, just delete the workspace. xml as specified in the error message.
iml file in the project root, plus one . iml file in each module directory (e.g., app/ ). You might try Tools > Android > Sync Project with Gradle Files. Otherwise, you may need to re-import the project.
However, if you want to open an IML file, you can open it using any text or source code editor, such as Notepad++ (Windows), Microsoft Visual Studio Code (cross-platform), or GitHub Atom (cross-platform).
In case you delete a module IML file, you can regenerate the file by rebuilding your project, reimporting your project, or opening and closing IDE. IML file is referenced and generated within IDEs. To open or edit . iml files, you need appropriate software.
Goto project root:
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With