com.android.ddmlib.AdbCommandRejectedException: device offline (Even when device is connected) : <p>After update of Android Studio to 2.1.2 I've been getting the following error too many times when i make a change.</p>

<blockquote>
  <p>com.android.ddmlib.AdbCommandRejectedException: device offline</p>
  
  <p>Error while Installing APK</p>
</blockquote>

<p><strong>The problem is device was never connected and is not offline</strong></p>

<p>If i unplug and re-plug the device it starts working fine again. This never happened in the previous version of AS.</p>

<p>Question: Is there a setting to be changed in AS for this to stop happening or it is a bug?</p>
