title: Android Gradle 2.2 Not Allowing ShrinkResources for Signed APK
body: <p>As part of the Android Studio 2.2 roll out I updated my Gradle Build tools to v2.2.  After doing that my signed APK build process fails because I have shrinkResources = true.</p>
  
  <p>Once I switch back to Gradle v2.1.3 OR set shrinkResources = false everything works fine.  Here's my app gradle build file:</p>
  
  <pre><code>    android {
      signingConfigs {
  
      }
      compileSdkVersion 24
      buildToolsVersion '24.0.0'
      defaultConfig {
          applicationId "com.sample.testapp"
          minSdkVersion 21
          targetSdkVersion 24
          versionCode 4
          versionName "0.0.4"
      }
      buildTypes {
          release {
              minifyEnabled false
              shrinkResources true
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
              proguardFile 'C:/Users/code/testapp/app/proguard-rules.pro'
          }
      }
      productFlavors {
      }
  }
  </code></pre>
  
  <p>With Gradle set to v2.2 here's the build error I get when generating a signed APK</p>
  
  <p><a href="https://i.stack.imgur.com/9QaOk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9QaOk.png" alt="enter image description here"></a></p>
  
  <p>Does anyone know why this is occurring and if there's a work around?  I've Googled around a bit and have seen some older Android Bug reports about alpha and beta Gradle builds having this issue, but the reports I found were >6 months old (and for previous Gradle versions).</p>
  
  <p>P.S. I know that minifyEnabled = false currently, i have yet to investigate the correct set of proguard rules for my included libraries to prevent the Signed Build from erroring out due to missing libs.</p>