无线调试时ADB设备列表为空

问题描述 投票:0回答:3

我的手机上装有 Android 11,我已设置无线调试,并且在配对设备列表中显示了我的计算机。但是,当我在计算机上运行

adb devices -l
时,设备列表为空。

为什么我看到一个空列表。我需要做一些额外的事情吗?

这是设备:

这是终端:

android adb android-wireless
3个回答
28
投票

您需要先连接到设备,然后设备才能在

adb devices -l
中可见。您必须运行
adb connect ipaddress:port
,就您而言
adb connect 192.168.1.123:37457
文档


0
投票

步骤01:开启无线调试

步骤02:点击“使用配对码配对设备” Step 02 outcome

步骤03:在cmd中输入“

adb pair ipaddress:hostname
”(IP地址将是 在上一步中打开窗口后显示在屏幕上)

步骤04:在cmd中输入android屏幕上显示的配对码

步骤05:在cmd中输入“

adb connect ipaddress:hostname

(this ip address is diffrent from the previous one 
{displayed on wireless debugging window, not in the popup window})

wireless debugging window

第06步:现在

adb devices
应该显示您的设备

黑客快乐


-1
投票

它说未知命令 adb 对 看到帮助菜单中没有列出配对命令

在我的情况下,请转到平台工具文件夹

~/Android/Sdk/platform-tools
,从这里您可以执行
./adb
,然后在帮助中您可以看到配对选项
./adb pair <ipaddress>:<port>
将提示输入配对码

然后就连接成功了

© www.soinside.com 2019 - 2024. All rights reserved.