Android Error:execution failed for task ': App:compiledebugjavawithjavac ' solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.