9

I get the following errors when I try to run my Android program.

Please explain me What really adb is, and how to restart it?

I am getting the following error

The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Aniket Thakur
  • 66,731
  • 38
  • 279
  • 289
siva636
  • 16,109
  • 23
  • 97
  • 135

5 Answers5

24

adb is Android Debug Bridge.

To restart adb by command line:

adb kill-server
adb start-server

To restart adb in Eclipse:

  1. Window > Show View > Other... > Android/Devices
  2. When the view is showing: View Menu of "Devices" > Reset adb
Hailei
  • 42,163
  • 6
  • 44
  • 69
  • When I do "Reset adb", I get this error messages: [2012-04-19 12:53:35 - DeviceMonitor]Adb connection Error:An existing connection was forcibly closed by the remote host [2012-04-19 12:53:36 - DeviceMonitor]Connection attempts: 1 – siva636 Apr 19 '12 at 07:25
  • @DUKE It seems that the Android virtual device has an active connection with adb, that's why those warning message appears. I suggest to close Eclipse and use the command line method to restart adb, and then restart Eclipse to see how it works? – Hailei Apr 19 '12 at 07:31
2

ADB stands for Android Debug Bridge.

Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device.

enter image description here

This info and more can be found here, on my blog.

As for restarting adb server you can execute following commands

adb kill-server
adb start-server

As for Eclipse simply close the IDE and restart/reopen. Infact restarting Eclipse should restart adb server as well.

General Grievance
  • 4,555
  • 31
  • 31
  • 45
Aniket Thakur
  • 66,731
  • 38
  • 279
  • 289
1

I saw this problem on Eclipse, and it reported that I needed to 'reset adb from the Device's view'. The adb kill&restart-server sequence didn't work for me, but I was successful with just disabling and then re-enabling the 'USB debugging' check box in the phone's Settings->Developer Options

Chris Stratton
  • 39,853
  • 6
  • 84
  • 117
kip2
  • 6,473
  • 4
  • 55
  • 72
1

i also came across with this problem, i got this error please ensure that adb is correctly located “Users/semihozkoroglu/ADT/sdk/platform-tools/adb” and can be executed

Click devices dropdown - > reset adb, its works..

ScreenShot

semih
  • 821
  • 8
  • 16
-2

ADB is a Android Debug Bridge.

Following for more Details ADB

http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/

http://developer.android.com/guide/developing/tools/adb.html

Close And Open Eclipse,Adb is automatically restarted..!

Thanks..!

Dinesh
  • 6,500
  • 10
  • 42
  • 77