【发布时间】:2016-06-06 20:14:49
【问题描述】:
我添加到我的 gradle.build 2 依赖项:
compile 'com.google.http-client:google-http-client'
compile 'com.google.http-client:google-http-client-jackson2'
我尝试从 Intellij 刷新,但出现错误:
>Could not resolve com.google.http-client:google-http-client:.
Required by:
:RoutingRegression:1.0
> Could not GET 'http://www.hibernatespatial.org/repository/com/google/http-client/google-http-client//google-http-client-.pom'.
> Connection to http://127.0.0.1:8888 refused
> Could not resolve com.google.http-client:google-http-client-jackson2:.
Required by:
:RoutingRegression:1.0
> Could not GET 'http://www.hibernatespatial.org/repository/com/google/http-client/google-http-client-jackson2//google-http-client-jackson2-.pom'.
> Connection to http://127.0.0.1:8888 refused
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
我该如何解决这个问题?
【问题讨论】:
-
你配置了哪些仓库?
-
请显示您的 build.gradle 的
repositories{}部分
标签: java maven intellij-idea gradle