且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从库中删除未使用的资源?

更新时间:2022-06-21 10:35:37

我几乎错过它来写,现在有一个很好的解决方案:

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

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

这是由Tor的诺尔比耶为构建工具0.14版上公开宣布 Google+的。 0

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