Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check the size of dependencies in an android app?

Tags:

android

gradle

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?

like image 805
Eduardo Cucharro Avatar asked Jul 26 '15 04:07

Eduardo Cucharro


People also ask

Which of the following is dependent by the size of an APK in Android?

The APK size will make an impact on your app performance about How fast it loads, How much memory it consumes, and How much memory it uses. It is very important to take a look at your APK size while developing. In this article, we will take a look over the tips to reduce your APK size in Android Studio.

What are dependencies in android?

In Android Studio, dependencies allows us to include external library or local jar files or other library modules in our Android project. For example: Suppose I want to show some images in ImageView. But I'm using Glide Library to enhance the smoothness of application.

How do I analyze an APK file?

Drag an APK or app bundle into the Editor window of Android Studio. Switch to the Project perspective in the Project window and then double-click the APK in the default build/output/apks/ directory. Select Build > Analyze APK in the menu bar and then select your APK or app bundle.

Where are the dependencies in Android Studio?

In Android Studio it can be found under appName > Tasks > help > dependencies .


1 Answers

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: enter image description here there is lib folder where you can check a size of each library. also you can se a size of resources and other stuf.

like image 159
oleg.semen Avatar answered Sep 20 '22 11:09

oleg.semen