【问题标题】:Connection to http://127.0.0.1:8888 refused in intellij在 intellij 中连接到 http://127.0.0.1:8888 被拒绝
【发布时间】: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 刷新,但出现错误:

我尝试从 cmd 构建 我得到这个错误:

>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


【解决方案1】:

您机器中的其他应用程序似乎正在使用端口 8888,您可以尝试关闭应用程序并重新构建

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-08-01
    • 2017-05-23
    • 1970-01-01
    • 1970-01-01
    • 2015-07-31
    • 1970-01-01
    • 2021-01-13
    • 2019-02-04
    相关资源
    最近更新 更多