KeepSafe/dexcount-gradle-plugin

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

Java

3,069

461 commits

updated Nov 26, 2025

See the code

README

Dexcount Gradle Plugin

a chart showing sample methods counts by package

Build Status Android Weekly Android Arsenal

A Gradle plugin to report the number of method references in your APK, AAR, or java module.

This helps you keep tabs on the growth of your app, with an eye to staying under the 65,536 method-reference limit, and avoiding the headache of eliminating methods or enabling multidex.

For more information, please see the website.

Download

The plugin is available from the Gradle Plugin Portal under the ID com.getkeepsafe.dexcount, and from Maven Central under the coordinates com.getkeepsafe.dexcount:dexcount-gradle-plugin:4.0.0.

Snapshot builds are available from the Sonatype Snapshot Repository at https://oss.sonatype.org/content/repositories/snapshots.

Dexcount requires Java 11 or higher, Gradle 7.0 or higher, and Android Gradle Plugin 7.0.0 or higher. (Building the plugin requires Java 17 or higher.)

Credits

The Java code from the com.android.dexdeps package is sourced from the Android source tree. Inspired by Mihail Parparita's dex-method-counts project, to whom much credit is due.

Copyright 2015-2023 Keepsafe Software, Inc

android
gradle
gradle-plugin

KeepSafe/dexcount-gradle-plugin

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

Java

3,069

461 commits

updated Nov 26, 2025

See the code

README

Dexcount Gradle Plugin

a chart showing sample methods counts by package

Build Status Android Weekly Android Arsenal

A Gradle plugin to report the number of method references in your APK, AAR, or java module.

This helps you keep tabs on the growth of your app, with an eye to staying under the 65,536 method-reference limit, and avoiding the headache of eliminating methods or enabling multidex.

For more information, please see the website.

Download

The plugin is available from the Gradle Plugin Portal under the ID com.getkeepsafe.dexcount, and from Maven Central under the coordinates com.getkeepsafe.dexcount:dexcount-gradle-plugin:4.0.0.

Snapshot builds are available from the Sonatype Snapshot Repository at https://oss.sonatype.org/content/repositories/snapshots.

Dexcount requires Java 11 or higher, Gradle 7.0 or higher, and Android Gradle Plugin 7.0.0 or higher. (Building the plugin requires Java 17 or higher.)

Credits

The Java code from the com.android.dexdeps package is sourced from the Android source tree. Inspired by Mihail Parparita's dex-method-counts project, to whom much credit is due.

Copyright 2015-2023 Keepsafe Software, Inc

android
gradle
gradle-plugin

Project health

Overall

2.7/10

Maintained

0/10

Code review

0/10
OpenSSF Scorecard

Latest release

4.0.0 · Jan 16, 2023

Releases this year

0

Significant stargazers

Olivér Falvai

79 followers · starred Aug 2017

Josh Friend

259 followers · starred Oct 2015

Bruno Coelho

63 followers · starred Jun 2015

Andreas Backx

64 followers · starred Apr 2017