title: Android SDK MonkeyRunner broken?
body: <p>I've been having some troubles gettin MonkeyRunner working. So far, we've tried 3 different computers and every android device we could get our hands on.</p>
  
  <p>the result is the same:</p>
  
  <pre><code>com.android.monkeyrunner.MonkeyRunnerStarter.main(MonkeyRunnerStarter.java:203)
  110715 16:59:55.819:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] Script
  terminated due to an exception
  110715 16:59:55.819:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]Traceback
  (most recent call last):
  File "/Users/lorinbeer/projects/phonegapminer/monkeyrun.py", line 10, in &lt;module&gt;
  device = MonkeyRunner.waitForConnection()
  at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:182)
  at com.android.monkeyrunner.adb.AdbMonkeyDevice.&lt;init&gt;(AdbMonkeyDevice.java:68)
  at com.android.monkeyrunner.adb.AdbBackend.waitForConnection(AdbBackend.java:100)
  at com.android.monkeyrunner.MonkeyRunner.waitForConnection(MonkeyRunner.java:78)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  
  java.lang.NullPointerException: java.lang.NullPointerException
  </code></pre>
  
  <p>This is running on osx, the phone is a Nexus S.</p>
  
  <p>The python looks like:</p>
  
  <pre><code>from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
  device = MonkeyRunner.waitForConnection()
  </code></pre>
  
  <p>I've tried this from a .py file, as well as from the interactive interpreter. I've also tried calling waitForConnection with the timeout and device id arguments, all with the same results.</p>
  
  <p>Any help is appreciated, thanks!</p>
  
  <p>--UPDATE--
  The device is connected, on, and enabled for development. The issue with monkeyrunner seems to be limited to osx, and might have to do with jdk on osx, and might not be an issue with monkeyrunner itself.</p>