I can't connect to my device anymore using ADB through the command line or in Eclipse.
Running the command
adb devices
returns the device name, but it says it's offline.
Things I've tried.
- Toggled Android debugging mode
- Reinstalled the Google USB driver
- Restored the OS to a previously working backup (CyanogenMod)
- Swapped the USB cord
- Rebooted the phone/computer multiple times
- Updated the Android SDK
I really don't have any clue what's going on. Anything else you think I can try, I'm all ears.
To be clear, if you're having this same issue the problem is probably an out-of-date SDK. As of 4.2.2 there is a security feature that requires you to confirm the RSA fingerprint of the connecting device. Open the SDK manager and update the tools! Then reboot.
late but I found the easiest way just go to DDMS and follow as shown in image...
Worked for me: in the begining it worked and after a while went to offline. I did the follwong:
adb kill-server
adb start-server
. Plug the phone again with usb to PCadb devices
, output of empty list provided.adb tcpip 5555
,adb connect <mobile wifi ip address>
Then it became online again.I hit the same issue on a Nexus 7 running 4.2.2 OTA update. I'm almost certain I had an ADB connection over USB and Wi-Fi after the update until it just stopped working. To fix, I updated my SDK using:
Now my development tools are:
Try by turning off usb debugging once and then enabling it agin and then connect your device with system: link
For me nothing worked. I spent about 12 hours constantly searching on the Internet and trying the solutions that worked for other people having similar issues.
Finally I ended up with just doing the ADB stuff over the LAN. The setting was right next to the USB Debug setting and in ADB it can be activated with "adb connect [IPADDRESS]:[PORT]". The port was 5555 on my phone.
I hope this helps someone to get back to work instead of having to deal with constant drawbacks.
Installed the latest android sdk.
Changed the USB port of the device.
Changed from MTP -> Charge only -> MTP.
It worked.