How to check the size of dependencies in an androi

2019-02-11 21:43发布

问题:

I'm working on an android app that already have many dependencies in it. I want to remove some starting by the bigger one's. How to check their size in the app?

回答1:

I dont know whether it helps you or not but I researched and found this.

select project from dropdown. go to your project. now select the libraries. right click on the library you want to see the detail. choose file path and click on the libraries or you can choose your dependency library. and go to the directory as shown in figure below



回答2:

In new Android Studio you can navigate build/outputs/apk folder double tap on apk file you are interested (there should be separate file for each flavor) It will open a view like this: there is lib folder where you can check a size of each library. also you can se a size of resources and other stuf.