IntelliJ Compilation Error zip END header not found

前端 未结 8 2322
花落未央
花落未央 2021-02-07 09:09

The Issue

I am unable to compile Java code for an imported Eclipse project on IntelliJ build 182.4505.22 on Java 9 and 10. The following error is displa

8条回答
  •  终归单人心
    2021-02-07 09:51

    In my case, the gradle version of the project was 6.2.2 and the 6.4.1(system default gradle) path was provided in the Intellij gradle settings. This issue appeared suddenly though. I was working on this project for a long time without any issues. I am not quite sure as to what triggered this issue. The gradle default version package was fine as the gradle build was fine from command line. :)

    Referred to suggestions from here

    Any one of the below solved the issue on my system:

    • Provide the path to project gradle version, in gradle settings. or
    • Change the 'distributionUrl' value in your gradle-wrapper.properties to have 'all' instead of 'bin'. And also make sure you have gradle-wrapper.properties configured in your intellij gradle settings.

    distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip

提交回复
热议问题