How can I make the app.iml application remain stable when rebuilding an Android Studio project?

The tag order of the orderEntry library in my app.iml continues to change as the branches switch, and Android Studio restores my project. Is there a way to get Android Studio to generate it in a stable / deterministic way so that I don't constantly have diff in git where the library moved up or down in order?

Sometimes it looks like this:

<orderEntry type="library" exported="" name="support-annotations-21.0.3" level="project" /> <orderEntry type="library" exported="" name="google-http-client-jackson2-1.19.0" level="project" /> 

In other cases, this is so:

 <orderEntry type="library" exported="" name="google-http-client-jackson2-1.19.0" level="project" /> <orderEntry type="library" exported="" name="support-annotations-21.0.3" level="project" /> 

I don't care, I just want him to stop bloating.

Edit

According to JetBrains you should share .iml files:

http://intellij-support.jetbrains.com/entries/23393067

+6
source share
1 answer

You can simply add these files to gitignore:

 *.iml 
+3
source

Source: https://habr.com/ru/post/984770/


All Articles