title: Android Studio gradle build issue: local variable type mismatch
body: <p>As I tried to find solution on internet but nothing too much related to my case</p>
  <p>Issue is next, build fails and getting error:
  Error:Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.lang.Object using a local variable of type int. This is symptomatic of .class transformation tools that ignore local variable information.</p>
  <p>I have 2 configs</p>
  <pre><code>buildTypes {
  debug {
      debuggable true
      minifyEnabled true
      signingConfig signingConfigs.defaultKey
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  }
  
  release {
      debuggable false
      minifyEnabled true
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  }
  </code></pre>
  <p>}</p>
  <p>issue is if I turn off debug proguard (minifyEnabled false) I get issue with build</p>
  <pre><code>Error:Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.lang.Object using a local variable of type int. This is symptomatic of .class transformation tools that ignore local variable information.
  Error:Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type int using a local variable of type android.util.SparseIntArray. This is symptomatic of .class transformation tools that ignore local variable information.
  </code></pre>
  <p>Inta-Run is disabled as proguard is enabled</p>
  <p>So whatever I do I can't get past this point, even if I create separate proguard file (debug one)
  and put next:</p>
  <pre><code>-renamesourcefileattribute SourceFile
  -keepattributes SourceFile,LineNumberTable
  -dontobfuscate
  -dontoptimize
  -dontpreverify
  -ignorewarnings
  </code></pre>
  <p>getting same, tried with : multiDexEnabled true
  but still no success
  In this case with proguard enabled I can build, getting debug/release normally and all works EXCEPT debug (what I need a lot)</p>
  <p>And this is 2nd day in row that I having issue with it and can' solve it
  Have somebody have similar issues? How I could solve it?</p>
  <p>P.S.
  gradle with stacktrace and debug flags gives me nothing useful so no help</p>