A Gradle plugin to report the number of method references in your APK, AAR, or java module on every build. 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. When applied, dexcount-gradle-plugin will create one task per Android variant that you can execute to produce method-count reports. The tasks are named according the variant, in the format “count${variant}DexMethods”. In a typical app, that means there will be tasks named countDebugDexMethods and countReleaseDexMethods. Historically, these counting tasks were run by default on every build; this continues to be true for projects using versions of Android Gradle Plugin from 3.4.0 up until 4.1.0. Beginning with 4.1.0, this is no longer the case, and method counts must be manually requested.

Features

  • The plugin is available from the Gradle Plugin Portal
  • Snapshot builds are available from the Sonatype Snapshot Repository
  • Dexcount requires Java 11 or higher, Gradle 7.0 or higher
  • 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
  • Avoids the headache of eliminating methods or enabling multidex

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Dexcount Gradle Plugin

Dexcount Gradle Plugin Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Dexcount Gradle Plugin!

Additional Project Details

Programming Language

Java

Related Categories

Java Software Development Software

Registered

2023-02-21