IDEA新建gradle项目,更新依赖出错问题


以下为配置文件


 group 'com.xx'
version '1.0'

apply plugin: 'java'

sourceCompatibility = 1.5

repositories {
    mavenCentral()
}

dependencies {
    compile 'org.springframework: spring-core: 4.2.0.RELEASE'
    testCompile group: 'junit', name: 'junit', version: '4.11'
}

更新依赖时提示
图片描述

然后我进去点 update 后 都是 error,如下图
图片描述

这种问题应该怎么解决?

java gradle

我在开绿灯 10 years, 1 month ago

好吧,是网络问题,后来又试下下居然好了。。。

Amanda夏 answered 10 years, 1 month ago

Your Answer