You are getting
Removed unused resources: Binary resource data reduced from 741KB to 402KB: Removed 45% Note: If necessary, you can disable resource shrinking by adding android { buildTypes { release { shrinkResources false } } } :app:validateExternalOverrideSigning :app:packageRelease FAILED Error:Execution failed for task ':app:packageRelease'.
Resource reduction only works in conjunction with code reduction.
minifyEnabled is an Android tool that will reduce the size of your application when it is created.
android { buildTypes { release { shrinkResources true // This must be first minifyEnabled true // This must be after shrinkResources proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } }
If you have not already created your application using minifyEnabled to compress code, try this before enabling shrinkResources, as you may need to edit the proguard-rules.pro file to save classes or methods that are created or run dynamically before you start deleting Resources .
Please read the official code and resource reduction guide .
Tip
Use the latest version
compileSdkVersion 25 buildToolsVersion '25.0.1' targetSdkVersion 25 compile 'com.android.support:appcompat-v7:25.1.0' // set other 25.1.0
NOTE
YouTubeRecyclerViewFragment.java uses or overrides a deprecated API.
Use an alternative latest version.
source share