Different Ways to Analyze APK Size of an Android App in Android Studio
APK size is one of the most important when we are uploading our app to Google Play. APK size must be considered to be as small as possible so users can visit our app and download our app without wasting so much data. In this article, we will take a look at How we can analyze our APK in Android Studio to check the APK size. Android Studio itself provides a feature with the help of which we can analyze our APK and check the size of our app. We will take a look at three different methods which we can use to analyze our APK size.
- Method 1: Using Analyze APK option
- Method 2: Drag and Drop your APK file
- Method 3: Using Profile or Debug APK option
Pre Requisites: For analyzing the APK you should have APK build with you from Android Studio. For this process, we can use both debug as well as release-APK to perform this task.
Method 1: Using Analyze APK option
Open Android Studio. Make sure you are having any of the projects open in Android Studio. Now Navigate to the top bar. Inside that top bar, click on the Build > Click on Analyze APK, you will get to see this option in the below screenshot.
After clicking on Analyze APK option you will get to see a dialog box to select your APK which you have to analyze. Select your .apk file and click on the Ok option. After that, you will get to see your APK reports as shown below screenshot.
Method 2: Drag and Drop your APK file
This is a simple method to analyze your APK file in android studio. Open any project in your Android Studio. Now navigate to the folder in which you have placed your .apk file. Now simply you have to drag and drop your APK file in Android Studio and you will get to see the report for your .apk file in your Android Studio. The report for the APK generated will look the same as shown in the above screenshot.
Method 3: Using Profile or Debug APK option
Open Android Studio and open any of the projects in your Android Studio. Now click on the File option which is shown in the top bar and then click on the Profile or Debug APK option which is shown in the below screenshot.
After clicking on this option you will get to see a dialog box, there select your APK file which we have to analyze. After selecting your APK file simply click on the OK option to analyze your APK file. You will get to see similar reports as shown in the first method.
Please Login to comment...