I am unable to generate Signed APK using minifyEnabled true
and shrinkResources true
App Level : build.gradle
buildscript {
R.raw.Keep (xml file)
Dont forget to Reference this Resource from .java source file. For more details see https://developer.android.com/studio/build/shrink-code.html
if you are worried about the size of your apk file then its good practice to shrink image files as well. That is convert RGB channel to Indexed channel,this can save up to 50% more space.
Note: .....YouTubeRecyclerViewFragment.java uses or overrides a deprecated API.