Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

What files should be in my .gitignore for an Android Studio project?

I've seen several examples that all include .iml but IntelliJ docs say that .iml must be included in your source control.

1 Answer

0 votes
by (50.2k points)

Since Android Studio 2.2 and up to 3.0, new projects are created with this gitignore file:

*.iml

.gradle

/local.properties

/.idea/workspace.xml

/.idea/libraries

.DS_Store

/build

/captures

.externalNativeBuild

For older project format, add this section to your gitignore file:

/*/out

/*/*/build

/*/*/production

*.iws

*.ipr

*~

*.swp

This file should be located in the project's root folder and not inside the project's module folder.

Browse Categories

...