If you tried to run your android app on your device and android studio shows that device off-line there are some reasons:
- You may be using and USB3.0 port, move it to USB2.0
- Your USB cable may have some problems, change it
- Restart phone, adb etc.
First option solved mine.