Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio and Github missing .iml files

Tags:

git

android

I'm using Android Studio version 1.5.1 and we have a problem when cloning and working with Github. In my gitignore file I got a text saying *.iml, as I understand this means that all my iml files are ignored by git and not uploaded. When my project collaborators are cloning my project, they get a error message telling them that there is 2 missing iml files. They are asked to either keep or remove them. It doesn't matter which they do beacuse it still gives the same problem. They cannot code or build anything.

As I understand the iml files should not be uploaded to github but instead Android Studio should automaticly generate them when it is building or importing a project.

What have we done wrong?

like image 988
Essej Avatar asked Apr 06 '16 09:04

Essej


People also ask

Where is the .IML file?

An IML file is a module for a Java application created by IntelliJ IDEA integrated development environment. An IML module is usually stored in the root folder of a project. It contains module configuration for resource files and source code.

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.

How do I run a .IML file?

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).

What's an .IML file?

Description. EML, short for electronic mail or email, is a file extension for an email message saved to a file in the Internet Message Format protocol for electronic mail messages.


Video Answer


1 Answers

After cloning the repo, you should re-open the project with

File -> Open

and select your project you've just clone and android studio will re-build, re-index and re-create the .iml file :)

enter image description here

like image 131
florian-do Avatar answered Sep 25 '22 10:09

florian-do