美文网首页
Android 统计 App 的方法总数

Android 统计 App 的方法总数

作者: yoomaz | 来源:发表于2017-02-28 14:45 被阅读104次

使用Gradle的插件com.getkeepsafe.dexcount

如果使用Android Studio的话可以使用这个插件,插件的地址[在这里]
https://github.com/KeepSafe/dexcount-gradle-plugin

在project 的 build.gradle 的加入下面代码:

dependencies { 
      classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.1' 
}

在 app 的 build.gradle 的加入下面代码:

apply plugin: 'com.getkeepsafe.dexcount'

然后点击运行,在编译的过程中,就会在 /app/build/outputs/dexcount/debug.txt里显示每个包方法数,其中还有炫酷的html网页展现形式

相关文章

网友评论

      本文标题:Android 统计 App 的方法总数

      本文链接:https://www.haomeiwen.com/subject/nchlmttx.html