【问题标题】:Enable/Disable PNG crunching in android studio在 android studio 中启用/禁用 PNG 处理
【发布时间】:2017-07-01 05:10:55
【问题描述】:

如何在 BuildType 属性中指定 PNG 处理。

我们如何在 android studio 中启用/禁用 PNG 处理。

【问题讨论】:

    标签: android android-studio build.gradle android-studio-3.0


    【解决方案1】:

    指定 PNG 处理现在是 BuildType 属性,在调试版本中默认禁用:

    android {
        …
        buildTypes {
            release {
                crunchPngs true// or false
            }
        }
    }
    

    注意:可从Android Studio 3.0 Canary 5 获得。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-29
      • 1970-01-01
      • 1970-01-01
      • 2016-01-19
      • 2016-11-23
      相关资源
      最近更新 更多