0 votes
1 view
in Devops and Agile by (29.1k 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 (49.8k 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...