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