adb 反向无法在 adb tcpip/adb 网络(无线)调试上工作

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

我使用 adb network/tcpip 将手机连接到 PC 进行调试

adb connect 192.168.xxx.xxx
然后我在终端
adb reverse tcp:8000 tcp:8000
中输入代码以将我的 flutter 应用程序连接到我的 laravel localhost api,但总是会出现这样的消息
adb.exe: error: more than one device/emulator

//this is the input and output command code in my pc terminal

C:\myPc>adb tcpip 5555
//then I unplugged my USB cable

C:\myPc>adb connect 192.168.xxx.xxx
//connected to 192.168.xxx.xxx:5555

C:\myPc>adb devices
//192.168.xxx.xxx:5555 device

C:\myPc>adb reverse tcp:8000 tcp:8000
//adb.exe: error: more than one device/emulator

C:\myPc>adb devices
//192.168.xxx.xxx:5555 device

尽管我只有1部Android手机连接到电脑,但我不知道为什么会出现错误

我很困惑为什么会发生这种情况。 我已经寻找了所有的解决方案,但没有成功

希望有人能解决这个问题

非常感谢并感谢所有建议和帮助

android laravel flutter dart adb
1个回答
0
投票

运行

adb devices
,获取您尝试将命令转发到的设备的 ID,然后运行:

adb -s deviceidehere restofyourcommand

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.