修复Mac Android Studio无法调试问题 发表于 2021-12-06 阅读次数: 概述Mac版Android Studio调试,提示Invalid argument : Argument invalid [port]搜索得到解决方案,原因是找不到localhost,在/etc/hosts中配置即可(之前不小心覆盖了) 配置sudo vim /etc/hosts 123456789### Host Database## localhost is used to configure the loopback interface# when the system is booting. Do not change this entry.##127.0.0.1 localhost255.255.255.255 broadcasthost::1 localhost 参考Android Studio因为hosts变更无法debug调试问题 打赏 支付宝