本文介绍了“minifyEnabled”有什么区别?和“useProguard”在Android插件Gradle?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到Gradle的Android插件具有 minifyEnabled 属性以及 useProguard 属性,如下所示:

  android {
buildTypes {
debug {
minifyEnabled true
useProguard假
}
释放{
minifyEnabled true
useProguard true
}
}
}

这两个属性有什么区别?或者说,每个人的含义是什么? 解决方案


$ b


I see that the Android Plugin for Gradle has a minifyEnabled property as well as a useProguard property, as follows:

android {
    buildTypes {
        debug {
            minifyEnabled true
            useProguard false
        }
        release {
            minifyEnabled true
            useProguard true
        }
    }
}

What's the difference between these two properties? Or, rather, what's the meaning of each?

Quoting from tools.android.com:

这篇关于“minifyEnabled”有什么区别?和“useProguard”在Android插件Gradle?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 04:35