.gitignore Builder for Android Studio

Generate a .gitignore for Android and Kotlin projects

Build a .gitignore for Android Studio projects. Covers .idea/, build/, local.properties, *.apk, *.aab, Gradle caches and signing keystores for Android and Kotlin apps — copy or download in your browser.

Why ignore local.properties?

local.properties stores the absolute path to each developer's Android SDK and NDK, which differs per machine. Committing it breaks builds for other contributors, so Android Studio generates it locally and it must stay ignored.

A .gitignore builder for Android Studio projects in Java or Kotlin. Tick the sections your app uses — Gradle build output, local.properties, packaged APK/AAB artifacts, IDE settings and signing keystores — and the tool assembles a clean, labelled .gitignore.

How it works

Each toggle adds a curated block of patterns under a # Header comment. The Gradle / build block ignores .gradle/, build/ and per-module */build/ directories that Gradle regenerates. The Local config block ignores local.properties, which points to each developer’s SDK path. The artifacts block ignores generated *.apk, *.aab, *.dex and mapping.txt, and the keystores block keeps signing files like *.jks out of version control.

What gets ignored

local.properties is excluded because it is machine-specific. The Android Studio block ignores .idea/ and *.iml so each developer keeps their own IDE setup. The Keystores block ignores *.jks, *.keystore and keystore.properties — these are security-sensitive and must never be committed.

Tips

Place the file at the root of your repository so the rules cover every module. Always commit the Gradle wrapper (gradlew, gradle/wrapper/) so contributors and CI use the same Gradle version. Store signing keystores and passwords in a CI secrets vault, never the repo. If a build file is already tracked, run git rm --cached <file> and commit so the ignore rule takes effect.