解决react-native run-android 的时候报错connection time out

前端之家收集整理的这篇文章主要介绍了解决react-native run-android 的时候报错connection time out前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在我们react-native run-android的时候,在执行过程中程序会报错,Downloading https://services.gradle.org/distributions/gradle-2.4-all.zip


Exception in thread "main" java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)


解决方法关闭防火墙就可以啦,就是这么简单~。~

原文链接:https://www.f2er.com/react/306827.html

猜你在找的React相关文章