嘿,我试图用我的应用程序启动 Monkeyrunner-Example-Project。当他尝试安装 apk 时,它返回此错误:
device.installPackage->
101208 13:43:52.900:S [pool-1-thread-1] [com.android.monkeyrunner.adb.AdbMonkeyDevice] Error starting command: monkey --port 12345
101208 13:43:52.900:S [pool-1-thread-1] [com.android.monkeyrunner.adb.AdbMonkeyDevice]com.android.ddmlib.ShellCommandUnresponsiveException
101208 13:43:52.900:S [pool-1-thread-1] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:408)
101208 13:43:52.900:S [pool-1-thread-1] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at com.android.ddmlib.Device.executeShellCommand(Device.java:276)
101208 13:43:52.900:S [pool-1-thread-1] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at com.android.monkeyrunner.adb.AdbMonkeyDevice$1.run(AdbMonkeyDevice.java:89)
101208 13:43:52.900:S [pool-1-thread-1] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
101208 13:43:52.900:S [pool-1-thread-1] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
101208 13:43:52.900:S [pool-1-thread-1] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at java.util.concurrent.FutureTask.run(Unknown Source)
101208 13:43:52.900:S [pool-1-thread-1] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
101208 13:43:52.900:S [pool-1-thread-1] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
101208 13:43:52.900:S [pool-1-thread-1] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at java.lang.Thread.run(Unknown Source)
和 device.startActivity 返回这个:
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] Error executing command: am start -n de.match2blue.mobilverlieben.SignUpWizard1
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice]com.android.ddmlib.ShellCommandUnresponsiveException
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:408)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at com.android.ddmlib.Device.executeShellCommand(Device.java:276)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at com.android.monkeyrunner.adb.AdbMonkeyDevice.shell(AdbMonkeyDevice.java:237)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at com.android.monkeyrunner.adb.AdbMonkeyDevice.shell(AdbMonkeyDevice.java:230)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at com.android.monkeyrunner.adb.AdbMonkeyDevice.startActivity(AdbMonkeyDevice.java:351)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at com.android.monkeyrunner.MonkeyDevice.startActivity(MonkeyDevice.java:297)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at java.lang.reflect.Method.invoke(Unknown Source)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:175)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at org.python.core.PyObject.__call__(PyObject.java:355)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at org.python.core.PyMethod.__call__(PyMethod.java:215)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at org.python.pycode._pyx0.f$0(C:\Users\Dustin Augstein\workspace\PythonTest\src\MonkeyTest.py:34)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at org.python.pycode._pyx0.call_function(C:\Users\Dustin Augstein\workspace\PythonTest\src\MonkeyTest.py)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at org.python.core.PyTableCode.call(PyTableCode.java:165)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at org.python.core.PyCode.call(PyCode.java:18)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at org.python.core.Py.runCode(Py.java:1197)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at org.python.core.__builtin__.execfile_flags(__builtin__.java:538)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:156)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at com.android.monkeyrunner.ScriptRunner.run(ScriptRunner.java:116)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at com.android.monkeyrunner.MonkeyRunnerStarter.run(MonkeyRunnerStarter.java:101)
101208 13:44:15.233:S [main] [com.android.monkeyrunner.adb.AdbMonkeyDevice] at com.android.monkeyrunner.MonkeyRunnerStarter.main(MonkeyRunnerStarter.java:212)
有谁知道如何解决这个错误?
提前致谢