Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error "The connection to adb is down" when run an android app

I'm new with android development, and I have problems installing all the recent platform. I'm a java developer that I would like learning android.

I've installed all programs succesfully in windows xp sp3 (JDK 1.6 with environment vars created, eclipse 3.5, 3.6 & 3.7 well configured, Android SDK with all the features, devices, platform-tools, APi's, etc, and ADT Plugin 12 for eclipse with an emulator to API 8 -Target 2.2-), but, when I'm running an android project into eclipse (Run -> Android Application), the eclipse console show me: "The connection to adb is down, and a severe error has ocurred... You must restart adb and eclipse... Ensure that adb is in this path 'D:\Android\android-sdk-windows\platform-tools\adb.exe'" (or something similiar).

I'm very sure that the path is right, adb is correctly running on command-line, and the commands 'adb kill-server' and 'adb start-server' works fine, but doesn't solve my problem (like I've read in other answers).

The emulator, via Eclipse, not working, but if I start the emulator via Eclipse ADV Manager, emulator starts fine, but when I runs the android app, I take the same error.

I suppose that Eclipse can't start adb,but I don't know why.

Other issue, when I executed 'adb devices', console show me an empty list, no 'no devices' message, but when I plugged my HTC, adb is running fine in console, but Eclipse doesn't.

In addition, I also try restarting adb with Eclipse - Devices tab, but the list of devices are empty too.

Anyone can help me, please? I've read so much that my eyes are pixelated. xD

Best regards!!

PD: sorry, but my english is a bit poor ;)

like image 790
Jose Ignacio Mendez Avatar asked Sep 23 '11 16:09

Jose Ignacio Mendez


1 Answers

in the DDMS perspective (if it doesn't show, add it by click window>open perspective>other...>DDMS) then click the triangle of the devices tab > reset adb. this works for me.

enter image description here

like image 71
Mr.Raindrop Avatar answered Sep 20 '22 12:09

Mr.Raindrop