原文错误:
Could not find method runProguard() for arguments [false] on BuildType_Decorated{name=release, debuggable=false, testCoverageEnabled=false, jniDebuggable=false, pseudoLocalesEnabled=false, renderscriptDebuggable=false, renderscriptOptimLevel=3, applicationIdSuffix=null, versionNameSuffix=null, minifyEnabled=false, zipAlignEnabled=true, signingConfig=null, embedMicroApp=true, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}}.
原因:
gradle 2.2以前使用 runProguard false
gradle 2.2以后使用 minifyEnabled false
解决办法:
在 项目(相当于Eclipse的workplace)/module(相当于Eclipse的project)/build.gradle 文件中
将
改为