Could not find method runProguard() for arguments [false] on BuildType_Decorated{

随时随地阅读更多技术实战干货,充分利用闲暇时间,请关注源代码社区公众号和技术交流群。

from:https://blog.csdn.net/u012964796/article/details/42493555

原文错误:

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 文件中

Could not find method runProguard() for arguments [false] on BuildType_Decorated{_第1张图片

 

Could not find method runProguard() for arguments [false] on BuildType_Decorated{_第2张图片

改为

Could not find method runProguard() for arguments [false] on BuildType_Decorated{_第3张图片

 

你可能感兴趣的:(Android,android,studio)