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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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