What makes the miniature Hello World Android APK so big - 800 KB?

This is currently not a general concern about bloating Android * apps, but a very specific question:

If you install Android Studio 2.3.3 and create a sample Hello World application (as described in the officialCreating Your First Application” tutorial ) and then create an APK release, the file size is 825 KB (I tested this on Linux, but I suspect the output is the same on other OSs).

Android Hello world release build

I have already enabled ProGuard and there are no images or other resources .

What is included in this apk by default?

What for?

How to remove this twist?

For comparison, in 2013, the Hello World application was under 10 KB .

* I remember when decent full-featured applications were several hundred kilobytes, and for comparison, PWA, such as Uber, is 1% of the size of the corresponding Android application

+7
source share
2 answers

It turns out that by deleting all kinds of resources and using crazy compression, an empty APK can be reduced to 678 bytes (!).

, , , Android APK 99,99%.

0

AppCompat, 100 .

appcompat v7 ,

build.gradle "": compile 'com.android.support:appcompat-v7:26.+

res\values\styles.xml :

<resources><style name="AppTheme" parent="android:Theme.Light"></style></resources>

(, <!-- Customize your theme here. --> ). , MainActivity.java extends AppCompatActivity

public class MainActivity extends Activity
+6

Source: https://habr.com/ru/post/1679579/


All Articles