Skip to content

Instantly share code, notes, and snippets.

@himattm
Created December 9, 2014 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save himattm/e6e324aa7b81bcffee01 to your computer and use it in GitHub Desktop.
Save himattm/e6e324aa7b81bcffee01 to your computer and use it in GitHub Desktop.
Fix: Gradle DSL method not found: 'runProguard()'
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.1"
defaultConfig {
applicationId "com.example.app"
minSdkVersion 16
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
// OLD - this line has to be changed, it was replaced with the below
// runProguard false
// New
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment