|
本帖最后由 sophia_test 于 2015-8-25 16:14 编辑
我也遇到同样问题,求解cmd 中可以连接上设备,但是写到Python中就连接不上报如下错误
Traceback (most recent call last):
File "D:\JAVA\JinCheng\src\ceshi.py", line 10, in <module>
device = MonkeyRunner.waitForConnection()
at com.android.monkeyrunner.MonkeyRunner.waitForConnection(MonkeyRunner.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.NullPointerException: java.lang.NullPointerException
|
|