无法通过ADB连接到我的Android设备 [英] Unable to connect to my android device via ADB
问题描述
很抱歉nooby问题,我在使用网络进行排序时遇到问题.
Sorry for the nooby question, I am having trouble sorting this out using the web.
我试图通过adb将设备简单地连接到我的PC上,以调试我的应用程序.
I am trying to simply connect my device to my pc via adb to debug my application.
我的设备已植根.启用了Adb调试.我下载了一个正在运行的adb应用程序并启动了ADB.
My device is rooted. Adb debugging is enabled. I downloaded an adb running application and started ADB.
现在我正在尝试使用adb connect ip:5555.并继续显示无法连接到ip:5555" ...
Now i am trying adb connect ip:5555. and keep on getting "unable to connect to ip:5555" ...
当我尝试通过USB连接时发生了同样的事情.
Same happend when i try to connect via usb.
c:\>adb connect 192.168.20.191:5555
unable to connect to 192.168.20.191:5555
帮助...?
C:> adb设备连接的设备列表06fecaa1未经授权
C:>adb devices List of devices attached 06fecaa1 unauthorized
推荐答案
启动Cordova
- 打开Node.js/CMD
- 指向源文件夹所在的目录" >>> C:\ Projects \ RJX
- 启用Wifi
- 在设置下打开开发人员选项"
- 启用/检查设置下的USB调试选项(如果找不到此选项,则为Google)
- 启用/检查设置下的MTP选项(如果找不到此选项,则为Google)
ADB命令
adb kill-server
adb start-server
//plug off cable from mobile and plug in again if you connected your device earlier
//Uninstall the application from mobile if you already installed. (if necessary)
adb tcpip 5555
adb connect "ip" //adb connect 192.192.2.128
adb devices //to check device details
cordova run android --device
如果此步骤不起作用,请尝试关闭cmd并再次执行.有时需要刷新.**如果您按照以下步骤操作,则Android设备版本4.0.4及更高版本应该没问题.
if this steps are not worked, try to close the cmd and do it again. Sometimes it needs some refresh. **Android devices version 4.0.4 and after should be no problem if you follow these steps.
这篇关于无法通过ADB连接到我的Android设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!