Dexcount Gradle Plugin is a Gradle plugin that reports the number of method references in your APK, AAR, or Java module on every build.
The plugin addresses the Android method reference limit of 65,536 by tracking method counts throughout development. It analyzes DEX files to count method references and presents this information in a readable format, helping developers monitor their app's growth and make informed decisions about code organization before hitting the limit becomes a problem requiring multidex or method elimination.
The tool suits Android projects of any size that want to maintain visibility into method reference growth. It works with APKs, AARs, and Java modules, making it useful across different build artifacts. The plugin integrates directly into the Gradle build process, so method counts are reported automatically with each build without requiring separate tooling or manual analysis steps.
The project maintains active development with regular updates to support current Android tooling. The codebase is written in Java and requires Java 11 or higher to run, with Java 17 needed for building the plugin itself. The tool depends on Gradle 7.0 or higher and Android Gradle Plugin 7.0.0 or higher, keeping pace with modern Android development practices. The plugin is distributed through both the Gradle Plugin Portal and Maven Central, with snapshot builds available for those tracking development versions.