title: Android Build fails using Proguard and Gradle
body: <p>I have recently converted a project from eclipse/ant to using Android Studio/Gradle. My debug build works fine but when I attempt to do a release build with proguard enabled it fails with the following error</p>
  
  <pre><code>16:26:13.437 [ERROR] [system.err] Unexpected error while computing stack sizes:
  16:26:13.438 [ERROR] [system.err]   Class       = [com/a/a/a/d/d]
  16:26:13.438 [ERROR] [system.err]   Method      = [&lt;clinit&gt;()V]
  16:26:13.438 [ERROR] [system.err]   Exception   = [java.lang.IllegalArgumentException] (Stack size becomes negative after instruction [143] swap in [com/a/a/a/d/d.&lt;clinit&gt;()V])
  </code></pre>
  
  <p>I have used the same proguard.txt for my eclipse project and it worked fine so it suggests there is some kind of problem with the Gradle Android plugin. Has anyone encountered a similar problem? My proguard config - <a href="http://pastebin.com/2gsNUmeD" rel="nofollow">http://pastebin.com/2gsNUmeD</a> and full gradle output <a href="http://pastebin.com/TAvMUSrR" rel="nofollow">http://pastebin.com/TAvMUSrR</a></p>