
Fui mexer em um projeto antigo meu e por acaso esbarrei no seguinte erro:
Gradle DSL method not found: ‘runProguard()’Possible causes:->The project ‘TURAP’ may be using a version of Gradle that does not contain the method.->The build file may be missing a Gradle plugin.
Rodando na internet descobri que o tal ‘runProguard’ foi renomeado na versão 0.14.0 do Gradle e que agora se chama ‘minifyEnabled’ e no arquivo build.gradle deve ser alterado de:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildTypes { | |
release { | |
runProguard false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' | |
} | |
} |
para:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' | |
} | |
} |