This error occurred today when building the project using Android StudiocompileDebugJavaWithJavac
Search to find the cause of the problem there are a number of things that need to be checked in conjunction with specific projects
Cause view via Terminal input from Android Studio gradlew compileDebugJavaWithJavac
PS d:\gitlab\develop\ruixinandroid_new>./gradlew compiledebugjavawithjavacunzipping C:\Users\lijingbo\.gradle\ Wrapper\dists\gradle-4.5.1-all\4alu8ppoj4agqqum265te8rc7u\gradle-4.5.1-all.zip to C:\Users\lijingbo\.gradle\ Wrapper\dists\gradle-4.5.1-all\4alu8ppoj4agqqum265te8rc7uexception in thread "main" java.lang.RuntimeException: Java.util.zip.ZipException:error in opening zip file at org.gradle.wrapper.ExclusiveFileAccessManager.access (exclu sivefileaccessmanager.java:78) at Org.gradle.wrapper.Install.createDist (install.java:47) at Org.gradle.wrapp Er. Wrapperexecutor.execute (wrapperexecutor.java:129) at Org.gradle.wrapper.GradleWrapperMain.main ( GRADLEWRAPPERMAIN.JAVA:48) caused by:java.util.zip.ZipException:error in opening zip file at Java.util.zip.ZipFile . Open (Native Method) at java.util.zip.zipfile.<init> (zipfile.java:220) at Java.util.zip.zipfile.<in It> (zipfile.java:150) at java.util.zip.zipfile.<init> (zipfile.java:164) at Org.gradle.wrapper.Install.unzip (install.java:160) at org.gradle.wrapper.install.access$40 0 (install.java:29) at Org.gradle.wrapper.install$1.call (install.java:70) at org.gradle.wrapper.install$1.cal L (install.java:47) at org.gradle.wrapper.ExclusiveFileAccessManager.access (exclusivefileaccessmanager.java:65) ... 3 more
Through the above Log, you can see is because gradle-4.5.1 decompression failure caused, into the directory, found that gradle-4.5.1 no download completed, only downloaded 50MB, the official website is 97MB. You can download it again from the official website.
Ref: 54582426/
Android Error:execution failed for task ': App:compiledebugjavawithjavac ' solution