Android studio – Failed to complete gradle execution – error in opening zip file

An “error in opening zip file” tends to mean that a file that Gradle has downloaded has somehow become corrupted — this might be the download of Gradle itself (which the wrapper does), or a dependency that Gradle has downloaded to run your build.

Gradle doesn’t attempt to detect or resolve the problem, so you need to fix it manually. The solution is often to purge Gradle’s download caches and let it get fresh copies of what it needs. To do that, delete the .gradle directories in both your home directory and in your project’s root directory and try building again.

Leave a Comment