How to enable R8 in your build process
As mentioned in What is ProGuard? R8 is the new kid on the block for shrinking and optimizing code. App Gradle android { buildTypes { release { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile( ‘proguard-android-optimize.txt’), ‘proguard-rules.pro’ } } https://developer.android.com/studio/build/shrink-code