Skip to content Skip to sidebar Skip to footer

After Migrate To Android Studio 3.0 Drawable 'png' Not Compressed In Debug Build

Drawables compressed in release build types, but NOT compressed in debug build types. Android Studio 3.0 Build #AI-171.4408382, built on October 20, 2017 JRE: 1.8.0_152-release-91

Solution 1:

The reason for this is documented here

Here is the quote

If you're using Android plugin 3.0.0 or higher, PNG crunching is disabled by default for only the "debug" build type

I solved my problem by adding crunchPngs true to debug build type configuration in the build.gradle:

buildTypes {
    debug {
        minifyEnabled false
        shrinkResources false
        crunchPngs true # <------ This option
    }

Post a Comment for "After Migrate To Android Studio 3.0 Drawable 'png' Not Compressed In Debug Build"