IntelliJ cannot import Gradle 4.10 project, Gradle CLI has no problems
Answered
Hello,
I'm trying to import a Gradle project into IntelliJ but it fails with the following error:
com.intellij.openapi.externalSystem.model.ExternalSystemException: Could not download hamcrest-all.jar (org.hamcrest:hamcrest-all:1.3): Skipped due to earlier error
> Could not download hamcrest-all.jar (org.hamcrest:hamcrest-all:1.3): Skipped due to earlier error
My proxy settings are OK and also compilation works fine using the gradle wrapper on Linux.
There is a way I can get more information where this is failing, from IntelliJ 2020.3 on Linux?
Thanks.
Please sign in to leave a comment.
Please share the complete logs: https://intellij-support.jetbrains.com/hc/articles/207241085 .
Also provide the logs from the Sync console.
What JDK version is used for importing in the IDE? Is it the same as you are using in the command line?
Logs can be uploaded at https://uploads.services.jetbrains.com/ .
Hello Serge,
Yes, it is the same JDK:
I will upload the logs shortly.
Make sure to specify the file name here so that we can find your logs.
The log from the sync console only shows this:
It doesn't look like a complete log, try clicking on the nodes on the left:
It would help if you could share the project and the IDE logs.
The file is called 'idea.log'
I cannot share the full sync log nor the project. Sorry.
I've reported https://youtrack.jetbrains.com/issue/IDEA-240380, please follow for updates. See https://intellij-support.jetbrains.com/hc/articles/207241135 if you are not familiar with YouTrack.
Note that running IntelliJ IDEA itself under Oracle JDK 8 is not a good idea, please consider switching back to the bundled JetBrains Runtime: https://intellij-support.jetbrains.com/hc/articles/206544879.
Please try https://youtrack.jetbrains.com/issue/IDEA-240380#focus=streamItem-27-4131558.0-0.
Using the link. Thanks!.
Feel free to close this issue. I will start from scratch using a Gradle and IntelliJ version that was working fine before. I changed too many things on my side and It will be impossible for me track down.
Thanks.
--Jose