How to remove unused resources from libraries?

前端 未结 2 1561
天涯浪人
天涯浪人 2021-02-09 14:11

At first I know Remove all unused resources from an android project, but that is only for projects.

I want to remove unused images from a li

2条回答
  •  庸人自扰
    2021-02-09 14:39

    I almost missed it to write that there is now a nice solution:

    android {
        buildTypes {
            release {
                minifyEnabled true
                shrinkResources true
            }
        }
    }
    

    This was annouced on Google+ by Tor Norbye for the build tools version 0.14.0

提交回复
热议问题