当我尝试在IntelliJ IDEA中导入Gradle项目时,出现以下错误:
IDE日志的开头如下:
[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)
如果我尝试创建一个新项目,我会得到:
Error:Download http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar
(of class java.lang.String)
答案 0 :(得分:9)
<强>方案强>
解决强>
通过按http://youtrack.jetbrains.com/issue/SCL-7405
禁用Scala插件解决了这个问题进一步更新:
Jetbrains问题评论表明,Scala插件的这个问题现在已经在最新的插件版本中得到解决,该版本现已发布。