intellij拒绝连接到http://127.0.0.1:8888 [英] Connection to http://127.0.0.1:8888 refused in intellij

查看:590
本文介绍了intellij拒绝连接到http://127.0.0.1:8888的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在gradle.build中添加了2个依赖项:

I added to my gradle.build 2 dependencies:

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

我尝试从Intellij刷新,但出现错误:

I try to refresh from Intellij and I get an error:

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

I try to build from cmd and I get this error:

>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.

我该如何解决?

推荐答案

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

It seems some other application in you machine is using the port 8888, can you try closing the application and try build again

这篇关于intellij拒绝连接到http://127.0.0.1:8888的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆