Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADT (Eclipse) vs. Android Studio: How much APK file size difference is normal?

I imported a ADT project to the latest version of Android Studio (0.6.1). Both projects share the same code and libraries. Also both projects were cleared and compiled with the same ProGuard settings enabled.

But the size of the ADT APK file is 1.8 MB and the Android Studio APK file is 2.7 MB.

Is this increase of 50% in APK file size considered as normal due to the fact that Android Studio is still in Early Access Preview or should I be able to get nearly the same APK file size?

(Update: I just unzipped the APK file: All files are nearly the same size, but the difference comes from the classes.dex file which is 1.2 MB on ADT and 4.4 MB on Android Studio.)

like image 414
Steffen Avatar asked Jun 23 '14 13:06

Steffen


People also ask

Is Eclipse better than Android Studio?

Android Studio is faster than Eclipse. There is no need to add a plugin to Android Studio but if we use Eclipse then we do need to. Eclipse needs many resources to start but Android Studio does not. Android Studio is based on IntelliJ's Idea Java IDE and Eclipse uses the ADT Plugin to develop Android applications.

Does APK size matter?

We found that smaller APK sizes correlate with higher install conversion rates, with an even larger impact on conversion rates for users in emerging markets. As many developers are shifting their focus towards expansion into new markets, particularly emerging markets, it is important to be cognizant of your app's size.

What is the size of APK?

Google Play requires that the compressed APK that users download be no more than 100MB. For most apps, this is plenty of space for all the app's code and assets.

Is Eclipse good for app development?

Eclipse is preferred for creating small android applications. Eclipse IDE is an open-source software used by developers, it contains a variety of plugins to create software in different programming languages. We will be using Eclipse IDE to set up Android App Development.


Video Answer


1 Answers

By reverse engineering the classes.dex files I found out that my code wasn't obfuscated in Android Studio.

Even though it seemed to me that ProGuard was enabled via runProguard true in my build.gradle and the checkbox asking for ProGuard before generating the signed APK file.

I had to change the build variant of the app module from debug to release as described here.

Now both APK files are almost the same size (1.812 vs. 1.817 MB).

like image 119
Steffen Avatar answered Oct 19 '22 22:10

Steffen