Connection to http://127.0.0.1:8888 refused in intellij

痞子三分冷 提交于 2020-12-09 18:44:21

问题


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'

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

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.

how can i fix this?


回答1:


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



来源:https://stackoverflow.com/questions/35603859/connection-to-http-127-0-0-18888-refused-in-intellij

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!