I\'m using Android Studio 3.4 (Canary 9), when I build my app, it failed with the following error
Task :app:transformClassesAndResourcesWithR8ForDebug
As you said you are not using any custom JVM args
, try it out.
In your gradle.properties
file try several values for memory settings. For example try to set
org.gradle.jvmargs=-Xmx4096m
As suggested by the commented section:
Specifies the JVM arguments used for the daemon process.
The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
I've used R8 in my project and all worked fine.