After update of Android Studio to 2.1.2 I've been getting the following error too many times when i make a change.
com.android.ddmlib.AdbCommandRejectedException: device offline
Error while Installing APK
The problem is device was never connected and is not offline
If i unplug and re-plug the device it starts working fine again. This never happened in the previous version of AS.
Question: Is there a setting to be changed in AS for this to stop happening or it is a bug?