Execution failed for task ': app: mockableAndroidJar'

I use local gradle version 2.4 and IntelliJ IDEA 14.1.3. When I start the project from IntelliJ, it works fine, but when the command is executed gradle clean buildfrom the command line, it gives a leaking exception and the assembly fails.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mockableAndroidJar'.
> java.util.zip.ZipException: invalid entry compressed size (expected 2051 but got 2050 bytes)
+4
source share
1 answer

This is like an old question that has not yet been answered. I had the same issue when my jar files could not be read by Android Studio and this gave me the above error.

Given the comment from -Mikhail Boyarsky, I changed the classpath in the build.gradle file to com.android.tools.build:gradle:2.2.3 '. The synchronized project and it started working.

0

All Articles