Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/233.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在特定变体中禁用ProGuard_Android_Gradle - Fatal编程技术网

Android 在特定变体中禁用ProGuard

Android 在特定变体中禁用ProGuard,android,gradle,Android,Gradle,我的项目有3种风格和2种构建类型: productFlavors { dev1 dev2 production } buildTypes { debug { minifyEnabled true } release { minifyEnabled true } } ProGuard目前已在所有6款车型中启用。我只想在dev1Debug中禁用ProGuard,以在开发过程中加速构建。有什么办法吗 我不想创建

我的项目有3种风格和2种构建类型:

productFlavors {
    dev1
    dev2
    production
}

buildTypes {
    debug {
        minifyEnabled true
    }
    release {
        minifyEnabled true
    }
}
ProGuard目前已在所有6款车型中启用。我只想在
dev1Debug
中禁用ProGuard,以在开发过程中加速构建。有什么办法吗

我不想创建一个额外的构建类型,比如
debugwithoutprograhard
,因为一些新的变体将是多余的,并且存在一些
debug
——只有依赖项、java代码和资源必须在
debug
debugwithoutprograhard
之间共享