Home > Mobile >  An Android small Studio project, almost did not make any substantial changes, just recompile generat
An Android small Studio project, almost did not make any substantial changes, just recompile generat

Time:11-21


His practice to develop a small APP, the function is very simple, also don't rely on third-party jar library calls,

A few months ago, the Android compilation in the Studio, the Generate Signed APK, get the APK 35 KB,

Today open the Android Studio, bend the resource file several string content, only to regenerate the APK, a whopping 112 KB, why is this?


Code without modification,

Android Grade Plugin, upgraded to 3.6.4 radar echoes captured today, 5.6.4 Grade upgrades to

Project relies on the support of the library, by the support - v4:26.0.0-1 change to support - v4:28.0.0;

CompileSdkVersion and targetSdkVersion, all changes from 26 to 29;

Release version of the build, confusion, have always been people who have the following code resources reduce configuration, such as
MinifyEnabled true
ZipAlignEnabled true
ShrinkResources true

Thank you for your advice, men code farmer friends, have a nice weekend!

CodePudding user response:

Three times but also dozens of k, very normal, if it is several m sent 3 times didn't need to pay attention to,

CodePudding user response:

Matching sdk26 turned 29 that adaptation increased, but also rely on some relevant parameters, such as increased

CodePudding user response:

Thank you learned

CodePudding user response:

Through the Android Studio contrast compiled the size of the apk, such as image resources, dex, signature information may change, such as lead to package size is not consistent
  • Related