title: Removing unused resources requires unused code shrinking to be turned on
body: <p>I am preparing to release an App to production. So, I generated signed apk. After generating signed apk,  I was getting a problem. My apk file size is a little large and I tried ways to shrink the apk size. I already tried</p>
  
  <blockquote>
    <p>app --> Refactor --> Remove Unused Resources</p>
  </blockquote>
  
  <p>and it is not too reduce. So, I added <strong>shrinkResources true</strong> in my build.gradle(app)</p>
  
  <pre><code> buildTypes {
          release {
              minifyEnabled false
              shrinkResources true
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  </code></pre>
  
  <p>After adding <strong>shrinkResources true</strong> and I got below error when I rebuild. My question is how should I turn on unused Code shrinking first? Thanks and appreciating.</p>
  
  <p><a href="https://i.stack.imgur.com/nGofh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nGofh.png" alt="enter image description here"></a></p>