Error: device offline

81,344

Solution 1

If "adb devices" lists your device but as "offline" chances are your path leads to an old version of adb (eg 1.0.29) which has problems with latest Android 4 devices. Make sure "adb version" returns 1.0.31 or greater. Starting with Android 4.2.2, you must confirm on your device that it is being attached to a trusted computer. It will work with adb version 1.0.31 and above.

Solution 2

It happened to me once. I just rebooted the device, and this solved the problem for me.

Solution 3

When I got that same error, I just unplugged and plugged in it and the error disappeared.

Solution 4

Try to run:

adb kill-server
adb start-server

Still device offline, please restart device.

Solution 5

If you are connecting through USB, unplug and plug it in again.

If you are connecting over WiFi, disable and re-enable WiFi on the phone.

Share:
81,344
program-o-steve
Author by

program-o-steve

I love to write code. When i am not writing code , i am anxious to do so ! Anyway if am anxious, typing code is anxiolytic. Learning ruby these days.

Updated on October 10, 2020

Comments

  • program-o-steve
    program-o-steve over 3 years

    The emulator is running. But when I write adb shell in my shell I get:

    error:device offline

    What is the reason for this? How do I get rid of it?