microsoft / vscode-gradle

Manage Gradle Projects, run Gradle tasks and provide better Gradle file authoring experience in VS Code
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-gradle
MIT License
113 stars 45 forks source link

Gradle error #1507

Open ShallyPee opened 1 week ago

ShallyPee commented 1 week ago

Extension Name: vscode-gradle Extension Version: OS Version: VSCode version:

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Output from "Gradle for Java" You can find this by clicking on the "Output" panel, then selecting the "Gradle for Java" channel from the dropdown.

Does the bug still exist if you disable all other extensions? Yes/No

Additional context Add any other context about the problem here.

ShallyPee commented 1 week ago

Exception in thread "main" java.util.zip.ZipException: zip END header not found at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1638) at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1646) at java.base/java.util.zip.ZipFile$Source.(ZipFile.java:1484) at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1446) at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:718) at java.base/java.util.zip.ZipFile.(ZipFile.java:252) at java.base/java.util.zip.ZipFile.(ZipFile.java:181) at java.base/java.util.zip.ZipFile.(ZipFile.java:195) at org.gradle.wrapper.Install.unzip(Install.java:214) at org.gradle.wrapper.Install.access$600(Install.java:27) at org.gradle.wrapper.Install$1.call(Install.java:74) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

Please how do you I handle this kind of error?

jdneo commented 1 week ago

Seems like gradle download is not complete, what if you directly run a gradlew command from terminal?

ShallyPee commented 1 week ago

Seems like gradle download is not complete, what if you directly run a gradlew command from terminal?

Thanks I just noticed i didn't download everything, but after doing that it is still showing the following error: FAILURE: Build failed with an exception.

jdneo commented 1 week ago

What will happen if you run gradlew :app:compileDebugJavaWithJavac from terminal directly