Android的亚行空连接主机名 [英] Android ADB connect empty host name

查看:2415
本文介绍了Android的亚行空连接主机名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用亚行通过WiFi连接到Android设备。当我键入​​

  ADB连接<设备IP>

我得到错误

 主机名空


解决方案

您需要更改设备上的 net.hostname 属性。最简单的方法是通过设备上一个root shell使用 setprop 命令。

  setprop net.hostname TypeAnyHostName

如果这不是为你工作,请参阅other这里解决方案。这是一个时间的解决方案,这个问题一段时间后再次重复。

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

adb connect <device ip>

I get error

empty hostname

解决方案

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.

这篇关于Android的亚行空连接主机名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆