在intellij中拒绝连接到http://127.0.0.1:8888

时间:2016-02-24 13:42:41

标签: java maven intellij-idea gradle

我添加到我的gradle.build 2依赖项:

compile 'com.google.http-client:google-http-client'
compile 'com.google.http-client:google-http-client-jackson2'

我尝试从Intellij刷新并收到错误:

enter image description here

enter image description here 我尝试从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.

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

您的计算机中似乎有其他应用程序正在使用端口8888,您能否尝试关闭该应用程序并尝试再次构建