Last Updated: September 09, 2019
·
23.17K
· iainconnor

.gitignore for Android Studio projects

The default .gitignore for Android Studio projects ignores a whole bunch of content that might be useful to maintain in your source control. For example, code styling/formatting settings likely should be shared between your development team.

Through some trial-and-error, I've come up with this list of files that are useful to ignore, leaving the good bits shared between your team members.

# Built application files
/*/build/

# Crashlytics configuations
com_crashlytics_export_strings.xml

# Local configuration file (sdk path, etc)
local.properties

# Gradle generated files
.gradle/

# Signing files
.signing/

# User-specific configurations
.idea/libraries/
.idea/workspace.xml
.idea/tasks.xml
.idea/.name
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/encodings.xml
.idea/misc.xml
.idea/modules.xml
.idea/scopes/scope_settings.xml
.idea/vcs.xml
*.iml

# OS-specific files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

1 Response
Add your response

For lazy people (like us :D)

Github has an Repository full of gitignore files for different projects/languages/frameworks/whatever. https://github.com/github/gitignore

over 1 year ago ·