android { // Other settings buildTypes { release { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } }
References
https://github.com/mhdr/AndroidSamples/tree/master/078
https://developer.android.com/topic/performance/reduce-apk-size.html
https://developer.android.com/studio/build/shrink-code.html