【发布时间】:2014-12-20 22:11:15
【问题描述】:
正常文件传输工作正常(1.56MB 和 6.7MB),但 apk (1.81MB) 失败:
>adb -s localhost:4444 push IMG_20141219_210043.jpg /storage/sdcard0/Download
45 KB/s (1637405 bytes in 35.128s)
>adb -s localhost:4444 push javamagazine20120708-dl.pdf /storage/sdcard0/Download
40 KB/s (7035111 bytes in 171.628s)
>adb -s localhost:4444 push wear-debug.apk /storage/sdcard0/Download
protocol failure
通过 Android Studio 安装时也会发生同样的情况:
Waiting for device.
Target device: motorola-moto_360-localhost:4444
Uploading file
local path: C:\workspace\Heating\wear\build\outputs\apk\wear-debug.apk
remote path: /data/local/tmp/com.mypackage.heating
I/O Error: An existing connection was forcibly closed by the remote host
整个下午(以及在那之前的一个月)一直在开发和测试 Wear (Moto360),没有出现任何问题,突然间,AS 开始以I/O Error: An existing connection was forcibly closed by the remote host 失败。
试过重启wear、phone、PC、adb,结果一样……
想法?
【问题讨论】: