I can\'t run my app on AVD. I get this error.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionF
Make sure you have enough RAM for gradle process by updating org.gradle.jvmargs in your gradle.properties.
Make sure your Gradle version and gradle plugin are compatible; refer to this table: https://developer.android.com/studio/releases/gradle-plugin#updating-gradle (i suggest plugin 3.5.3 with gradle 5.4.1 as of this writing!)
And what might be happening to some without knowing it, is not using JDK 8! I tried with JDK 11 and saw many different R8 and dexing errors! Also looks like this whole setup does not work with Eclipse OpenJ9 JDK distribution! so make sure you are using standard OpenJDK of your OS (mine would be default OpenJDK-8 from Debian)