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.

 

 

0
11 comments

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/ .

0

Hello Serge,

Yes, it is the same JDK:

java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

I will upload the logs shortly.

0

Make sure to specify the file name here so that we can find your logs.

0

The log from the sync console only shows this:

Could not download XXX-3.14.2-1.jar.jar (XXX:YYY-3.14.2-1.jar:1.0-SNAPSHOT): Skipped due to earlier error

There is a way to get additional details?
0

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.

0

The file is called 'idea.log'

0

I cannot share the full sync log nor the project. Sorry.

0

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.

0

Using the link. Thanks!.

0

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

0

Please sign in to leave a comment.