Android .gitignore Template
Android Studio local properties, build outputs, and Gradle cache. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.
Interactive Stack Generator
Open in Full GeneratorAndroid Studio local properties, build outputs, and Gradle cache
### Android #### Gradle files.gradle/build/.kotlin/ # Local configuration file (sdk path, etc)local.properties # Log/OS Files*.log # Android Studio generated files and folderscaptures/.externalNativeBuild/.cxx/*.aab*.apkoutput-metadata.json # IntelliJ*.iml.idea/misc.xmldeploymentTargetDropDown.xmlrender.experimental.xml # Keystore files*.jks*.keystore # Google Services (e.g. APIs or Firebase)google-services.json # Android Profiling*.hprof Raw Android .gitignore
Crawlable upstream source template# Gradle files.gradle/build/.kotlin/ # Local configuration file (sdk path, etc)local.properties # Log/OS Files*.log # Android Studio generated files and folderscaptures/.externalNativeBuild/.cxx/*.aab*.apkoutput-metadata.json # IntelliJ*.iml.idea/misc.xmldeploymentTargetDropDown.xmlrender.experimental.xml # Keystore files*.jks*.keystore # Google Services (e.g. APIs or Firebase)google-services.json # Android Profiling*.hprof Key Pattern Breakdown
Build & Compilation Artifacts
Ignores compiled binaries, intermediate object files, and build output directories generated during development.
Environment & Secrets
Prevents leaking sensitive local credentials, API keys, database URLs, and environment configuration files.
Cache & Temporary Files
Ignores compiler caches, test runner coverage data, and transient temporary scratch files.
System & Editor Files
Filters out operating system metadata and workstation-specific editor configuration folders.
Source & Verification
Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.