IntelliJ Compilation Error zip END header not found

前端 未结 8 2441
花落未央
花落未央 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:56

    As mentioned above, just delete the corrupted cache and restart Intellij.

    Running gradle in the commandline can help knowing what you should delete. For instance:

    $ ./gradlew --version
    Could not unzip /home/cesarc/.gradle/wrapper/dists/gradle-5.6.2-all/9st6wgf78h16so49nn74lgtbb/gradle-5.6.2-all.zip to /home/cesarc/.gradle/wrapper/dists/gradle-5.6.2-all/9st6wgf78h16so49nn74lgtbb.
    Reason: error in opening zip file
    

    and after deleting the folder /home/cesarc/.gradle/wrapper/dists/gradle-5.6.2-all/9st6wgf78h16so49nn74lgtbb the problem was solved:

    $ ./gradlew --version
    Downloading https://services.gradle.org/distributions/gradle-5.6.2-all.zip
    ......
    

提交回复
热议问题