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.