When I run the gradle clean build command during the build process in the console, I receive an error:
Error occurred during initialization of VMagent library failed to init: instrumentError opening zip file or JAR manifest missing: /home/john/IdeaProjects/project1/build/tmp/.cache/expanded/zip_e44e3fcpe9n401ca2c14883/jacocoagent.jarProcess 'Gradle Test Executor 1138' finished with non-zero exit value 1.
I checked if I even have such a path, but up to this point /home/john/IdeaProjects/project1/build/tmp
, there is no folder like .cache. Probably that's why it can't open this zip file because it simply doesn't exist. When I tried to add the .cache/expanded
folder, the zip appeared there, but when I ran the build command again, .cache/expanded
disappeared (probably due to clean).
The problem surely does not lie in the configuration of where to save the Jacoco test reports because the issue appeared when I changed the computer from Ubuntu 20.04.4 LTS to 22.04.4 LTS and installed everything anew, and this error occurred upon running. So, I assume that it may be related to the Ubuntu system itself (perhaps it lacks permissions to create such a folder and upload the zip report there??). I reinstalled IntelliJ, but the same error persists. I am working on OpenJDK 17.