无法Gradle,错误日志是:

CONFIGURE SUCCESSFUL in 0s
Could not resolve: org.springframework:spring-jdbc:5.0.6.RELEASE
Could not resolve: org.apache.httpcomponents:httpclient:4.3.4
Could not resolve: com.alibaba:fastjson:1.2.24
Could not resolve: com.saicfc.efs:EFSCommon:0.3.8
Could not resolve: org.eclipse.jetty:jetty-server:9.4.9.v20180320
Could not resolve: org.eclipse.jetty:jetty-util:9.4.9.v20180320
Could not resolve: org.eclipse.jetty:jetty-http:9.4.9.v20180320
Could not resolve: org.eclipse.jetty:jetty-io:9.4.9.v20180320
Could not resolve: com.github.ulisesbocchio:jasypt-spring-boot-starter:2.1.1
Could not resolve: com.saicfc.esb.hessian:bswinvoke:0.0.1
Could not resolve: org.apache.commons:commons-lang3:3.6

检查Gradle版本,.没有问题,原因是在Gradle设置里面点了Offline work,所以无法下载maven配置信息,导致无法构建,Could not resolve。

SpringBoot项目无法Gradle,报 Could not resolve:XXXX

将这个点掉就可以了。就可以执行maven配置了

repositories {
    mavenLocal()
    maven { url 'http:。。。' }
}

相关文章:

  • 2022-02-15
  • 2022-12-23
  • 2021-06-22
  • 2021-05-12
  • 2021-09-16
  • 2022-01-15
  • 2021-07-12
猜你喜欢
  • 2021-10-15
  • 2021-11-28
  • 2021-07-19
  • 2022-12-23
  • 2021-04-27
  • 2021-04-03
相关资源
相似解决方案