美文网首页
Android MonkeyRunner 触摸操作 小米手机出错

Android MonkeyRunner 触摸操作 小米手机出错

作者: UnityAsk | 来源:发表于2019-03-10 01:45 被阅读0次

    在调用 drag的时候 报错:

    190310 01:30:52.843:S [main] [com.android.chimpchat.adb.AdbChimpDevice] Error sending drag start event

    190310 01:30:52.843:S [main] [com.android.chimpchat.adb.AdbChimpDevice]java.net.SocketException: Broken pipe (Write failed)

    190310 01:30:52.843:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at java.net.SocketOutputStream.socketWrite0(Native Method)

    190310 01:30:52.843:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)

    190310 01:30:52.843:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at java.net.SocketOutputStream.write(SocketOutputStream.java:155)

    190310 01:30:52.843:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)

    190310 01:30:52.843:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)

    190310 01:30:52.843:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)

    190310 01:30:52.843:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)

    190310 01:30:52.843:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)

    解决方法:

    在开发者选项 里面 打开如下设置就可以了

    IMG_1808.JPG

    相关文章

      网友评论

          本文标题:Android MonkeyRunner 触摸操作 小米手机出错

          本文链接:https://www.haomeiwen.com/subject/rmvypqtx.html