Android ADB connect empty host name

匿名 (未验证) 提交于 2019-12-03 08:44:33

问题:

I use ADB over WiFi to connect to an Android device. When I type

adb connect <device ip> 

I get error

empty hostname 

回答1:

For me, simply restarting adb solved the problem

adb kill-server adb start-server 


回答2:

You need to change net.hostname property on your device. The easiest way is to use the setprop command via a root shell on the device.

setprop net.hostname TypeAnyHostName 

If this is not working for you, see other solutions here. This is a temporal solution, the problem repeats again some time later.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!