Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: I accidentally deleted my app.iml file from my project, how do I add it

Now, my project will not run...it is telling me that my app module is missing. Has anyone had this problem before? I have no idea what information was in that file, so I dont know what to do. Any recommendations would be appreciated :-)

like image 224
Tim Boland Avatar asked Jun 15 '14 22:06

Tim Boland


People also ask

Where are .IML files stored?

Storage (iml file) Configuration information for a module is stored in a . iml module file. By default, such a file is located in the module's content root folder.

How do I import a .IML file?

Import an existing module iml file from another project: From the main menu, select File | New | Module from Existing Sources. In the dialog that opens, specify the path the . iml file of the module that you want to import, and click Open.

Can we delete IML file?

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.

What is project IML file?

An IML file is a module settings file created by IntelliJ IDEA, an Integrated Development Environment (IDE) used to develop Java applications. It stores information about a development module, which is a Java, Plugin, Android, or Maven component of a Java application.


2 Answers

I opened the "Gradle projects" pane on the right, alt-clicked the project, then "refresh Gradle project" and all was fixed.

like image 98
Christine Avatar answered Sep 28 '22 11:09

Christine


Got it....I just imported the project like it didnt already exist and it fixed itself.

like image 30
Tim Boland Avatar answered Sep 28 '22 10:09

Tim Boland