当我尝试在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)
版本:
> IntelliJ 13.1.4
> Gradle 1.12
> Ubuntu 14.04
最小的例子:
如果我尝试创建一个新项目,我得到:
Error:Download http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar (of class java.lang.String)