Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you regenerate a deleted modules .iml file in android studio

I have accidentally erased one of my project modules .iml file and I was wondering if its possible to regenerate it. I have googled around for a bit but I have not seen a solution yet.

like image 548
James andresakis Avatar asked Dec 17 '14 19:12

James andresakis


People also ask

Can you delete an 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 .IML file in Android Studio?

IML is a module file created by IntelliJ IDEA, an IDE used to develop Java applications. It stores information about a development module, which may be a Java, Plugin, Android, or Maven component; saves the module paths, dependencies, and other settings.


1 Answers

If your project is Gradle-based, then click the Sync Project with Gradle Files button enter image description here in the toolbar and it will regenerate all .iml files.

If you can't locate this button , then just look at right for Gradle tasks -> select task -> right click -> refresh external dependency will bring you back modules and iml file.

like image 71
Scott Barta Avatar answered Sep 25 '22 16:09

Scott Barta