Search code examples
androidandroid-studiogitignore

How to .gitignore app/app.iml in Android Studio project?


No matter how I structure my .gitignore I can't seem to ignore app/app.iml via Android Studio 2.0.0.

So far, I've tried ignoring all *.iml files per the github's standard Android Studio .gitignore template, as well as targeting the file directly..

app/app.iml
*.iml

Anybody run into a similar issue with this specific file or other *.iml files? How did you resolve it?


Solution

  • Try adding a forward slash to app/app.iml inside your .gitignore like so.. /app/app.iml. This worked for me after following @xiaoyaoworm' advice.