简体   繁体   中英

Strange Gradle IntelliJ error

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

在此输入图像描述

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)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM