首页 > 技术文章 > After Android Studio update: Gradle DSL method not found: 'runProguard()'

penghuster 2015-11-16 18:01 原文

1 具体报错为:

Error:(16, 0) Gradle DSL method not found: 'runProguard()'

Possible causes:<ul><li>The project 'App' may be using a version of Gradle that does not contain the method.

<a href="openGradleSettings">Gradle settings</a></li><li>The build file may be missing a Gradle plugin.

<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>

2  原因:从 Android Gradle Plugin 0.14.0以后,runProguard属性被更名为minifyEnabled ,可以查看gradle plugin的版本说明

Screenshot showing change location in IDE

推荐阅读