Showing dex method count by package

前端 未结 6 1338
无人共我
无人共我 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 06:09

    I appreciated the work off all developers above and I am always happy to have such great community, but since Android studio 2.2 Google team has released APK Analyzer -> https://developer.android.com/studio/build/apk-analyzer.html

    Now we all have build in tool to analyze out methods count, our resources size and even we can compare two .apk files agains each other. Finally we all have this tool build in. Android development is coming to be easier and easier.

    BTW: To find how much methods you have, open your .apk file in Android Studio (support 2.2+ only) and click on the classes.dex file. After that you will be able to see the methods count in all libraries and in your project as well.

提交回复
热议问题