Counting Method References On Every Build Dexcount Gradle Plugin

suggest change

The 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents