"Execution of compression failed" error when building project in Android Studio 3.1
I also run into this problem lately. This happened because I included a very large zip file in the assets. I fixed this issue by adding dexoptions in app build.gradle
android {
dexOptions {
javaMaxHeapSize "4g"
}
}
And increasing JVM heap size
org.gradle.jvmargs=-Xmx4608M
like this.Go to gradle.properties
to find this option.