Adb stopped by some reason?

2019-05-11 19:53发布

Sometimes my adb disconnected. Why i am getting like this : -

[2011-09-27 17:39:43 - adb]
[2011-09-27 17:39:43 - adb]This application has requested the Runtime to terminate it in an     unusual way.
[2011-09-27 17:39:43 - adb]Please contact the application's support team for more     information.
[2011-09-27 17:39:49 - DeviceMonitor]Adb connection Error:An existing connection was     forcibly closed by the remote host
[2011-09-27 17:39:51 - DeviceMonitor]Connection attempts: 1
[2011-09-27 17:39:53 - DeviceMonitor]Connection attempts: 2
[2011-09-27 17:39:55 - DeviceMonitor]Connection attempts: 3
[2011-09-27 17:39:57 - DeviceMonitor]Connection attempts: 4
[2011-09-27 17:39:58 - DeviceMonitor]Connection attempts: 5
[2011-09-27 17:40:00 - DeviceMonitor]Connection attempts: 6
[2011-09-27 17:40:02 - DeviceMonitor]Connection attempts: 7
[2011-09-27 17:40:04 - DeviceMonitor]Connection attempts: 8
[2011-09-27 17:40:06 - DeviceMonitor]Connection attempts: 9
[2011-09-27 17:40:08 - DeviceMonitor]Connection attempts: 10
[2011-09-27 17:40:10 - DeviceMonitor]Connection attempts: 11

Any help appreciated?

标签: android adb
5条回答
啃猪蹄的小仙女
2楼-- · 2019-05-11 19:58

Due to some reason sometimes adb gets disconnected, so in that case you have to reset the adb.

Go to DDMS->Devices and you will see reset adb option in View Menu besides Screen Capture option.

enter image description here

查看更多
ら.Afraid
3楼-- · 2019-05-11 20:00

Another way to restart the adb is through terminal or command line. Depending on if you have adb in your path just type:

$ adb kill-server

$ adb start-server

If adb is not in your path then:

$ path-to-sdk/platform-tools/adb kill-server

$ path-to-sdk/platform-tools/adb start-server

Hope this helps!

查看更多
Rolldiameter
4楼-- · 2019-05-11 20:16

In preferences change the android/DDMS log settings from "error" to "debug". After this you should be able to use the Reset adb option.

查看更多
5楼-- · 2019-05-11 20:18

Loose connection of the cable connecting the device i hope.

查看更多
We Are One
6楼-- · 2019-05-11 20:21

Go to DDMS->Devices and you will see restart adb option in View Menu besides Screen Capture option.

查看更多
登录 后发表回答