To enable code shrinking with ProGuard, add minifyEnabled true to the appropriate build type in your build.gradle file.
android {
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile(‘proguard-android.txt'),
'pro...
To enable resource shrinking, set the shrinkResources property to true in your build.gradle file.
android {
...
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'p...
All libraries come with resources that are not necessary useful to your application.
For example Google Play Services comes with translations for languages your own application don’t even support.
You can configure the build.gradle file to specify which resource you want to keep.
For example:
de...