# mihaip/dex-method-counts

Command-line tool to count per-package methods in Android .dex files

Repository: https://github.com/mihaip/dex-method-counts
Canonical: https://ross.abutalabs.com/products/dex-method-counts
Language: Java
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2020-03-27T04:20:44+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4504, "days_push": 2350, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2578, forks 374 (observed 2026-08-28T04:07:02.322733+00:00)

## What it is
A command-line Java tool that counts methods in Android DEX executables, grouped by package, to help developers stay under Android's 65,536 referenced method limit. It accepts APK, ZIP, DEX files, or directories and outputs counts as a flat list or tree.

## Use cases
- count methods per package in an android apk
- check if my app is close to the 64k dex method limit
- find which libraries are bloating my dex method count
- analyze method counts in a dex file
- count fields instead of methods in an apk
- debug multidex issues in android app

## When to choose
- you need per-package or per-class method counts from an APK or DEX file
- you are fighting the 65,536 method reference limit and need to find what to trim
- you want a lightweight CLI that works on Linux, macOS, and Windows

## When to avoid
- you need full APK static analysis beyond method/field counts
- you want a maintained GUI or integrated Android Studio plugin
- you need runtime or build-time multidex handling rather than analysis

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: cli, developer-tools, parser
- domain: android-tools, developer-tools
- platform: cli, jvm, cross-platform
- tags: android, dex, apk-analysis, method-count, multidex, java, command-line

## Member repositories
- mihaip/dex-method-counts (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:02.322733+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-30T02:22:40.678365+00:00, confidence not recorded.
  - readme: https://github.com/mihaip/dex-method-counts (fetched 2026-08-28T04:07:02.322733+00:00, sha dd42cc3e0f57)
- Data as of 2026-08-30T08:39:29.467469+00:00.
