.gitignore Android App Cheatsheet

Posted on Sunday April 10, 2016 / by Eric Potvin

Do you forget to create a .gitignore file when you create a new Android project? Or forget what to put in the .gitignore file?

Here's a quick cheatsheet that will help you.

#
# Custom libs
#
app/libs/CoreLib.jar

#
# Built application files
#
*.apk
*.ap_

#
# Java class files
#
.idea/
*.class

#
# Generated files
#
bin/
gen/
out/
build/
app/build/

#
# Gradle files
#
.gradle/

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

#
# Others files
#
*.iml
*.log

#
# Keystore files
#
*.jks