ADB设备卡在“连接”状态中。州 [英] ADB device stuck in "connecting" state

查看:965
本文介绍了ADB设备卡在“连接”状态中。州的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将手机连接到Android Studio,以进行一些应用程序开发。我目前正在努力将手机正确连接到计算机,因为ADB似乎从未连接到设备。

I'm trying to connect my phone to Android Studio to follow up with some app development. I am currently struggling with connecting my phone to the computer properly, as ADB never seems to connect to the device.

尝试在设备上启动应用程序时,这是Android Studio在运行控制台中告诉我的内容

When attempting to boot the app on the device, this is what Android Studio tells me in the run console

com.android.ddmlib.AdbCommandRejectedException: device still connecting
Error while Installing APK

这使我认为这是亚行的问题。因此,当我运行 adb设备时,会显示以下日志:

Which leads me to think that this is a problem with ADB. So when I run adb devices I get this log:

List of devices attached
5210a780f48b44c5        connecting

无论我多长时间,它始终处于连接状态等待。我接受了USB调试和文件传输。

It stays in the "connecting" state no matter how long I wait. I accepted USB debugging and file transfer.

在Android Studio中,该设备被列为

When in Android studio, the device is listed as

我不知道如何解决此问题。我最近将手机(Samsung A5)更新为Android 8.0。这部手机可以在我的工作计算机上连接并调试良好。我尝试更新Android Studio,重新启动计算机,安装Samsung驱动程序,重新启动手机,取消调试访问,但无济于事。我可以在这台计算机上工作一段时间,但是我不知道发生了什么变化。

I'm out of ideas as to how to fix this. I recently updated my phone (Samsung A5) to Android 8.0. This phone connects and debugs fine on my work computer. I tried updating Android Studio, rebooting my computer, installing Samsung drivers, rebooting my phone, revoking debug access, to no avail. I was able to work on this computer a while back but I don't know what changed.

如何解决此问题,以便可以在设备上进行调试?

How can I fix this problem so I can debug on my device?


adb版本显示此

Android Debug Bridge version 1.0.40
Version 4797878
Installed as C:\Users\Frederic\AppData\Local\Android\sdk\platform-tools\adb.exe


推荐答案

一个朋友告诉我,尝试将端口交换为USB 2.0而不是USB 3.0。

A friend told me to try to swap ports to a USB 2.0 instead of USB 3.0. After doing so it worked instantly as expected.


看来,这与主板功能有关,而不是USB版本。端口是。相反的情况可能对您或您的任何其他端口都适用。

It appears that this has more to do with the capabilities of the motherboard than the version of USB the port is. The opposite might be true for you, or just any other port.

这篇关于ADB设备卡在“连接”状态中。州的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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