title: Proguard ParseException: "Expecting keyword 'allowshrinking', 'allowoptimization', or 'allowobfuscation' before 'includedescriptorclasses"' on -Keep
body: <p>Weird error that only pops up when running the Proguard step from Android Studio</p>
  
  <p>The error: </p>
  
  <p><code>org.gradle.internal.UncheckedException: proguard.ParseException: Expecting keyword 'allowshrinking', 'allowoptimization', or 'allowobfuscation' before 'includedescriptorclasses' in line 42 of file...</code></p>
  
  <p>Here is the line in question in my Proguard file:</p>
  
  <p><code>-keep, includedescriptorclasses public class com.Foo.Bar {
      public protected &lt;fields&gt;;
      public protected &lt;methods&gt;;
      public protected *;
  }
  </code></p>
  
  <p>Noting that:</p>
  
  <p><code>-keep,allowobfuscations, allowoptimizations, allowshrinking, includedescriptorclasses public class com.Foo.Bar {
      public protected &lt;fields&gt;;
      public protected &lt;methods&gt;;
      public protected *;
  }
  </code></p>
  
  <p>Or any combination of keep modifiers still results in the same error message.</p>