Why does IntelliJ fail to sync a new gradle dependency?
For a newly unzipped project opened in IntelliJ, the build failed and it shows:
zip END header not found
It looks a duplicated question.
Refer https://stackoverflow.com/a/68375780/11741935 for details.
Related
I have multi module maven project in intelliJ 2019.3 (Ultimate)
I am not able to get all dependencies after several tries. I tried below solutions as well
Solution 1
Solution 2
I noticed under the Maven tool same module shows twice as below
Not sure that caused the issue here.
Strangely I don't see any red lines in the any of the POMs
Provided that you can build project from command line Maven and dependencies are downloaded.
In IntelliJ IDEA please try: File | New | Project from Existing Sources action and point to pom.xml file to import project from. Then choose to delete existing project configuration.
The Error:
Failed to sync Gradle project '-'
Error:Unable to find method 'org.gradle.internal.logging.progress.DefaultProgressLoggerFactory.(Lorg/gradle/internal/logging/progress/ProgressListener;Lorg/gradle/internal/time/TimeProvider;)V'.
You can see, a constructor inside a class, which is found in the logging jar (gradle_home/lib/grade-logging-version.jar) is missing.
So, I think the Class-Path does not contain this jar file.
Gradle Version: 3.5
Running using the Command Line works.
I have already tried this:
Gradle sync failed: Unable to find method
to-find-method, it does not work for me.
I have tried to use different versions.
I can't see any difference when enabling
"Use default gradle wrapper"
"Use gradle wrapper task configuration"
"Use local gradle distribution".
I had the exact same problem today.
The only way I was able to get it to work was to remove my IntelliJ IDEA IDE, get the latest from the website (with JDK) and put it in a new folder (i.e. no overwriting existing files).
After that, I deleted the .idea folder from the project and reimported it cleanly into the "new" IntelliJ.
I suspect upgrading IntelliJ from Version <= 2016.x caused the issue, since a new installation / clean extraction from archive caused it to work on the fly.
My IntelliJ java Gradle project failed with the error.
Error:Could not find property 'semanticVersion' on root project 'MY_PROJECT_NAME'.
It did not create src and other folders.
I've got this error when trying to create a new Gradle Java project. After I have created project with auto folder generation option in IntelliJ wizard, I did not see any of the source or grade wrapper folders. Also, the project build failed everytime with error
Error:Could not find property 'semanticVersion' on root project 'MY_PROJECT_NAME'.
The final solution was that there was no "gradle.properties" file in my project. After I have created a new file "gradle.properties" and added line 'semanticVersion=1.0.0' to it, everything worked fine. Hope this helps someone.
I am trying to create a jar in IntelliJ through maven clean-compile-package. Build is sucessful but I am not getting class and packages in tha jar. Please help! I got below warning in logs:
[WARNING] JAR will be empty - no content was marked for inclusion!
maven project have default standard directory layout its documented here
if you not followed them or moved folders around, maybe changed output folder or similar action was taken, maven can't correctly decide how to include your class files.
I forked the Mailcore2 repo here: https://github.com/MailCore/mailcore2/
and tried to build the libMailcore2-ios.a framework myself.
Clone the repo
Open up the mailcore2.xcodeproj file in build-mac
Select the mailcore ios target and try building with cmd+b
The build succeeds
However, I'm unable to find where this project file exports the libMailcore2-ios.a file. I see the linked products in the project, but they are all red.
Any help?