开发者社区 问答 正文

tomact debug报错,哪位大神有碰到过这种问题 ?报错

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
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]

这个问题搞得我没睡好觉,什么都没问题第二天启动debug就报这个错,启动是没问题,但debug就会报错。hosts文件也没动过,从官网考了一段代码进去还是这样,有哪位大神碰到解决过这种问题。求助!!!

展开
收起
爱吃鱼的程序员 2020-06-23 14:28:01 594 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    1.在/etc/hosts下面添加
    127.0.0.1localhost.localdomainlocalhost

    2020-06-23 14:28:19
    赞同 展开评论
问答地址: