錯誤信息大概這種感覺
ERROR:transport error 202: gethostbyname: unknown host
A configuration error occurred during startup. Please verify the preference field with the prompt: ERROR: transport error 202: gethostbyname: unknown host
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
找到“系統盤:\Windows\System32\drivers\etc”下面的host或者hosts(Linux)文件,加一句
127.0.0.1 localhost
或者
127.0.0.1 localhost.localdomain localhost (Linux)
改了以后的確好了,但之后我無聊又給改回去了,仍然沒有問題……
不過如果出現過這個問題建議就不要改回來了……你改一次它記住了,但過段時間就又忘了的……然后還得再來一次……