I am trying to use the new Shrinker for debug builds (at 3:14)
https://youtu.be/xxx3Fn7EowU?t=3m14s
Also I want to enable shrinking unused resources after that.
My config is
debug {
minifyEnabled true
useProguard false
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
But Gradle sync fails with an error message:
Error:Build-in class shrinker and resource shrinking are not supported yet.
Is this possible or I need to enable full proguard to use resource shrinking?
Ryan R is completely right.
Just small addition. You could either completely remove useProguard false
string from your buildType
closure, or set it to useProguard true
if you are in release build type.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With