# KeepSafe/dexcount-gradle-plugin

A Gradle plugin to report the number of method references in your APK on every build.

Repository: https://github.com/KeepSafe/dexcount-gradle-plugin
Canonical: https://ross.abutalabs.com/products/dexcount-gradle-plugin
Homepage: https://keepsafe.github.io/dexcount-gradle-plugin/
Language: Java
License: Apache-2.0
License Family: permissive
Topics: android, gradle, gradle-plugin
Last push: 2025-11-26T23:36:05+00:00

## Health v2 (maintenance only)
Score: 47/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 54, release rhythm 8, longevity 100
- inputs: {"age_days": 4108, "days_push": 280, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3072, forks 255 (observed 2026-08-28T04:07:41.623279+00:00)

## What it is
A Gradle plugin that reports the number of method references in your APK, AAR, or Java module on every build. It helps Android developers track app growth and stay under the 65,536 method-reference limit without needing multidex.

## Use cases
- count method references in my android apk
- track dex method count growth on every build
- avoid hitting the 64k method limit in android
- monitor method count of an aar library
- check if my app needs multidex
- report method counts per package in gradle build

## When to choose
- you build Android apps or libraries with Gradle and need visibility into method-reference counts
- you want to catch method-count growth before hitting the 65,536 limit
- you need per-package breakdowns of dex method usage

## When to avoid
- you need full APK size or dependency analysis rather than method counts
- your project uses Gradle below 7.0 or AGP below 7.0
- you develop non-Android Java projects where dex counting is irrelevant

## Facets
- artifact type: plugin
- maturity: active
- function: build-tool, developer-tools, analytics, monitoring
- domain: mobile-development, developer-tools, android-tools
- platform: jvm, cli
- tags: gradle-plugin, android, dex, method-count, multidex, apk-analysis

## Member repositories
- KeepSafe/dexcount-gradle-plugin (main) score 47

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:41.623279+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:27:57.786624+00:00, confidence not recorded.
  - readme: https://github.com/KeepSafe/dexcount-gradle-plugin (fetched 2026-08-28T04:07:41.623279+00:00, sha e7f728a9d064)
  - homepage: https://keepsafe.github.io/dexcount-gradle-plugin/ (fetched 2026-08-29T09:43:13.232444+00:00, sha 7ec464816877)
- Data as of 2026-08-30T08:39:29.467469+00:00.
