A typical .gitignore file when you work with Android studio 2.2

What should be add in the gitignore when you work with Android studio 2.2 ?

Really interesting question. We all know when we work with GIT, we should be very careful with the file we commit. It might lead to un-necessary problems. I will add a typical .gitignore file so that you can use it in your future android studio projects.

Use  # to add comments in your file.




# built application files

# files for the dex VM

# Java class files

# built native files (uncomment if you build your own)
# *.o
# *.so

# generated files

# Ignore gradle files

# Local configuration file (sdk path, etc)

# Proguard folder generated by Eclipse

# Eclipse Metadata

# Mac OS X clutter

# Windows clutter
# Log Files

# Android Studio Navigation editor temp files

# Android Studio captures folder
# Keystore files

# Intellij IDEA (see https://intellij-support.jetbrains.com/entries/23393067)

# External native build folder generated in Android Studio 2.2 and later
#important if you are working with c++ project.


I will update the file there is any changes. Let me know if i have missed any important file here. I got this format in the Intellij IDEA website so there might be a missing file.


Thanks guys.


About Zumry

Zumry Mohamed

Self Taught iOS & Android Mobile Application Developer.

Article written by zumrywahid

Self Taught iOS & Android Mobile Application Developer.

Be the first to comment

Leave a Reply

Your email address will not be published. Required fields are marked *