The emulator is running. But when I write adb shell
in my shell I get:
error:device offline
What is the reason for
I restarted my computer, and at the same time I rebooted the phone. The adb devices returns fine.
I came with this condition twice.The first time I used the command "adb kill-server" in my PC, and restarted the android device. It worked. However the second time the method didn't work any more.This time I disconnected and reconnected the network. It worked.
This happened to me running Ubuntu 19.04 and Android 9. I fixed this by turning off developer options then turning it back on. And make sure USB Debugging is allowed in there as well.