com.android.ddmlib.AdbCommandRejectedException:设备脱机(即使连接了设备) [英] com.android.ddmlib.AdbCommandRejectedException: device offline (Even when device is connected)
问题描述
在将Android Studio更新到2.1.2之后,进行更改时,出现了很多次以下错误.
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:设备离线
com.android.ddmlib.AdbCommandRejectedException: device offline
安装APK时出错
问题是设备从未连接且未离线
如果我拔出并重新插入设备,它将再次开始正常工作.在以前的AS版本中从未发生过这种情况.
If i unplug and re-plug the device it starts working fine again. This never happened in the previous version of AS.
问题:是否需要在AS中更改设置以使其停止发生或者是错误?
Question: Is there a setting to be changed in AS for this to stop happening or it is a bug?
推荐答案
使Studio缓存无效,重新启动设备,PC即可工作.有时端口也有问题,只需在更改PC的USB端口后再尝试.
Invalidate your Studio cache, restart your device and pc will work. Sometimes the problem with port also, just try after changing the usb port of your pc also.
这篇关于com.android.ddmlib.AdbCommandRejectedException:设备脱机(即使连接了设备)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!