The latest version of Android studio 0.9 supports proguard Minify and shrinkresources. After trying, the system prompts that the minifyenabled method cannot be found.
Error :( 29, 0) gradle DSL method not found: 'ifyenabled ()'
After several times of Google, no one encountered the problem. I accidentally read G + and found that the android studio team sent a message saying that gradle plugin 0.14.0 is required.
Dependencies {
Classpath 'com. Android. Tools. Build: gradle: 0.14. +'
}
But according to the official introduction, these two attributes need to be used together (shrinkresources, minifyenabled). If you use them separately, the problem is not verified. If you are interested, try again.
- Support for automatic removal of unused resources
- Off by default for now, enable by setting shrinkresources to true in your release build types. Requires minifyenabled as well.
Solve the problem that gradle minifyenabled cannot be found