“minifyEnabled” vs “shrinkResources” - what's the difference? and how to get the saved space?

后端 未结 3 425
悲&欢浪女
悲&欢浪女 2020-12-12 20:04

Background

According to the \"Resource Shrinking\" webpage of Andriod documentations (here), you can minimize the app\'s size via the build.gradle file, by using t

3条回答
  •  情深已故
    2020-12-12 20:44

    • shrinkResources is useful to reduce the dimension of your generated APK, stripping out any unused resource.
    • minifiedEnabled simply runs Proguard which helps android plugin to package the APK without unused code, in order to shrink it

提交回复
热议问题