Showing dex method count by package

前端 未结 6 1353
无人共我
无人共我 2021-01-30 05:30

I\'m working on android app that\'s running up against the dex method count limit. Is there a simple way to show the method count grouped by package? I can get

6条回答
  •  心在旅途
    2021-01-30 05:52

    I and a collegue published the last month a service that can help you with your purpose: http://www.methodscount.com/. It shows the methods count and other neat information

    Under the hood we use gradlew to get the dependencies and the Android SDK tool dx to calculate the dex information. We apply the procedure recursively to the library and its dependencies. We also persist the results for the already computed libraries so to speed up the process on consequent requests.

    If you use Android Studio or IntelliJ, you can just install the plugin to have all the information as an handy hint (the plugin uses the service as well).

提交回复
热议问题