title: R8 issue: Unable to set up Proguard minifyEnabled because of error GC overhead limit exceeded
body: <p>Error while generating release bundle with <code>minifyEnabled true</code> option. Here are the Gradle settings which give me the error:</p>
  
  <pre><code>buildTypes {
          release {
              minifyEnabled true
              shrinkResources true
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  </code></pre>
  
  <p>I also see that task transformClassesAndResourcesWithR8For... takes too much time (up to 10-20 mins)</p>
  
  <p>The error:
  <code>java.lang.OutOfMemoryError: GC overhead limit exceeded</code> in Gradle task transformClassesAndResourcesWithR8ForCommonRelease</p>