Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange Gradle IntelliJ error

When I try to import a Gradle project in IntelliJ IDEA, I get the following error:

enter image description here

The IDE log starts out as follows:

[1314928]   WARN - nal.AbstractExternalSystemTask - 
 (of class java.lang.String) 
com.intellij.openapi.externalSystem.model.ExternalSystemException: 
 (of class java.lang.String)
    at org.jetbrains.plugins.gradle.service.project.AbstractProjectImportErrorHandler.createUserFriendlyError(AbstractProjectImportErrorHandler.java:106)
    at org.jetbrains.plugins.gradle.service.project.BaseProjectImportErrorHandler.getUserFriendlyError(BaseProjectImportErrorHandler.java:153)
    at org.jetbrains.plugins.gradle.service.project.BaseGradleProjectResolverExtension.getUserFriendlyError(BaseGradleProjectResolverExtension.java:358)

Versions:

  • IntelliJ 13.1.4
  • Gradle 1.12
  • Ubuntu 14.04

Minimal example:

If I try to create a new project, I get:

Error:Download http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar
 (of class java.lang.String)
like image 397
Eric Wilson Avatar asked Aug 07 '14 13:08

Eric Wilson


1 Answers

Scenario

  • Error message encountered on IntelliJ 13.1.4 on OS X 10.9.4, using Gradle 1.11.
  • Project previously worked fine in IntelliJ 13.1.3, but now the Gradle import fails since IntelliJ 13.1.4.

Resolution

This is resolved by disabling the Scala plugin as per http://youtrack.jetbrains.com/issue/SCL-7405


Further update:

The Jetbrains issue commentary suggests that this issue with the Scala plugin is now resolved in the latest plugin version, which has now been released.

like image 67
outofcoffee Avatar answered Oct 13 '22 00:10

outofcoffee