Android Studio and Github missing .iml files

I am using Android Studio version 1.5.1, and we have a problem when cloning and working with Github. In my gitignore file, I got text with the expression * .iml, as I understand it, this means that all my IML files are ignored by git and not loaded. When my project co-authors clone my project, they receive an error message informing them that there are 2 missing iml files. They are asked to either be held or removed. No matter what they do, it still gives the same problem. They cannot code or build anything.

As I understand it, iml files should not be uploaded to github, but instead, Android Studio should automatically generate them when creating or importing a project.

What have we done wrong?

+6
source share
1 answer

After cloning the repo, you should reopen the project with

File → Open

and select your project that you just cloned, and android studio will rebuild, reindex and recreate the .iml file :)

enter image description here

+7
source

All Articles