title: Drawable resource not found after minify enabled in android app
body: <p>buildTypes {
  release {
  minifyEnabled true
  shrinkResources = true
  proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  }
  debug {
  debuggable true
  testCoverageEnabled true
  proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  }
  }</p>
  <p><strong>Me also facing same issue minifyEnabled true shrinkResources = true</strong></p>
  <pre><code>fun updateImage(context: Context, imageName: String, imageView: ImageView) {
      if (imageView.tag?.equals(imageName.lowercase()) != true) {
          imageView.setImageDrawable(
              ContextCompat.getDrawable(
                  context,
                  context.resources.getIdentifier(
                      imageName.lowercase(),
                      &quot;drawable&quot;,
                      context.packageName
                  )
              )
          )
          imageView.tag =
              context.resources.getIdentifier(
                  imageName.lowercase(),
                  &quot;drawable&quot;,
                  context.packageName
              )
      }
  }
  </code></pre>
  <p>How can we resolve this issue.?</p>