Counting Method References On Every Build Dexcount Gradle Plugin
suggest changeThe dexcount plugin counts methods and fields after a successful build. The 64k reference limit counts both.
Put the classpath in app/build.gradle before the apply plugin lines. buildscript after apply plugin is too late to resolve that plugin.
buildscript {
repositories {
mavenCentral() // or jcenter()
}
dependencies {
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.5'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.getkeepsafe.dexcount'
After a debug build, the report is under app/build/outputs/dexcount. The chart is app/build/outputs/dexcount/debugChart/index.html.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents