java.io.IOException:无法建立回送连接 [英] java.io.IOException: Unable to establish loopback connection
本文介绍了java.io.IOException:无法建立回送连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在CMD中构建android时,我得到了这个Java异常,但我不明白为什么以及如何解决这个问题.
I get this java exception when i build android in CMD and i don't catch why and how to figure this out.
例外是:
java.io.IOException: Unable to establish loopback connection
我该怎么办? (离子2大厦android Windows 10家庭版64位)
What can I do ? (ionic 2 building android windows 10 Home 64 bit)
推荐答案
将选项放入_JAVA_OPTIONS
环境变量中.
Put the options in the _JAVA_OPTIONS
environment variable.
例如,在Linux上,将以下内容放入~/.profile
或~/.bash_profile
:
For example, on Linux, put the following in your ~/.profile
or ~/.bash_profile
:
export _JAVA_OPTIONS="-Djava.net.preferIPv4Stack=true"
Windows:
set _JAVA_OPTIONS=-Djava.net.preferIPv4Stack=true
这篇关于java.io.IOException:无法建立回送连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文