项目build.gradle中配置
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.1'// 项目根目录build.gradle配置代码
在module中配置
apply plugin: 'com.getkeepsafe.dexcount'//在项目build.gardle中配置代码
在打包时就可看到方法使用情况了
Total methods in app-release.apk: 58685 (89.55% used)
Total fields in app-release.apk: 34455 (52.57% used)
Methods remaining in app-release.apk: 6850
Fields remaining in app-release.apk: 31080
你也可以在build>outputs>dexcount>release.txt中查看具体详情
使用详情
网友评论