无法连接到 tcp:5037: 无法连接到 127.0.0.1:5037: 由于目标机器主动拒绝,无法建立连接.(10061) [英] could not connect to tcp:5037: cannot connect to 127.0.0.1:5037: No connection could be made because the target machine actively refused it. (10061)

查看:68
本文介绍了无法连接到 tcp:5037: 无法连接到 127.0.0.1:5037: 由于目标机器主动拒绝,无法建立连接.(10061)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 android 的新手> 我无法运行 adb.exe 它给了我以下错误:

Hi I am new to android I am not able to run adb.exe it gives me below error:

==>adb start-server
adb I  6108  5748 adb.cpp:219] Android Debug Bridge version 1.0.32
adb I  6108  5748 adb.cpp:219] Revision 09a0d98bebce-android
adb I  6108  5748 adb.cpp:219]
adb I  6108  5748 adb_client.cpp:126] _adb_connect: host:version
adb I  6108  5748 sysdeps_win32.cpp:742] could not connect to tcp:5037: cannot connect to 127.0.0.1:5037: No connection could be made because the target machine actively refused it. (10061)
adb I  6108  5748 adb_client.cpp:175] adb_connect: service host:start-server
* daemon not running. starting it now on port 5037 *
Cannot open 'nul': The system cannot find the file specified. (2)
* failed to start daemon *
error: cannot connect to daemon

这个错误到底是什么意思..?

What does this error exactly mean..?

Cannot open 'nul': The system cannot find the file specified. (2)  

这是什么错误..?

推荐答案

确保您已安装设备驱动程序和 adb 服务并在 android 设备中激活 USB 调试 ->设置 ->开发者选项并且当您通过 USB 端口连接时必须可以看到您的设备(通过此命令:adb devices)

因此,当您通过 USB 连接时,请遵循以下命令:

1-stay 通过 USB 连接
2-连接到您的 WIFI 网络(计算机和移动设备)
3-ping DeviceIP(必须ping到您的设备)
4- adb kill-server
5-adb usb
6-adb tcpip 5556
7-adb 连接yourDeviceIP:5556"
8-adb devices(必须看到两个设备名称,其中之一是通过 deviceIP:5556)
9-拔下USB线

那么就大功告成了!你可以测试你的应用

make sure you have installing your device driver and adb service and is activated USB debugging in android device -> setting -> developer options and must be could to see your device when you connected by USB port ( by this command : adb devices)

so when you connected by USB follow this Commands :

1-stay connect via USB
2-connect to your WIFI network (computer and mobile device both)
3-ping DeviceIP (must be have ping to your device)
4- adb kill-server
5-adb usb
6-adb tcpip 5556
7-adb connect "yourDeviceIP:5556"
8-adb devices (must be see two device names , one of them is by deviceIP:5556)
9-unplug USB cable

then it's Done! and you could to test your app

这篇关于无法连接到 tcp:5037: 无法连接到 127.0.0.1:5037: 由于目标机器主动拒绝,无法建立连接.(10061)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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