Recently, I upgraded Android Studio from version 1.5 to 2.0 but since then I observe that the number of errors and warnings has increased. Most of the errors do not make sen
Adding -keepattributes EnclosingMethod to proguard rules suppresses these errors and warnings.
Worked for me like a charm.
Update :
Adding -keepattributes EnclosingMethod to proguard rules actually changes how the classes are obfuscated. This preserves the optional attributes that are typically necessary for your code to be executed WITHOUT such issue.