I\'m having a problem with emulator-5554, it keeps telling me it is offline.
When I do a adb devices from the command line it says
adb devices
In my case, the emulator was working with Oreo and lower, but not with Pie, and everything I tried seemed to have no effect. What finally worked was updating the emulator to latest (version 28).