title: android.util.AndroidException: INSTRUMENTATION_FAILED:
body: <p>I have a simple android app and I am testing it using my phone. So, there are two ways to do that : </p>
  
  <ol>
  <li>Using eclipse</li>
  <li>Using CLI</li>
  </ol>
  
  <p>Problem:</p>
  
  <p>When I run unit test case using Eclipse, it installs app on my phone at runtime and run junit test and after that if I use command on CLI:
  adb -d  shell am instrument -w com.abc.xyz.test/android.test.InstrumentationTestRunner, it runs fine. </p>
  
  <p>However, if I directly run the above command in CLI without first running the unit test cases in Eclipse, I am getting error:</p>
  
  <pre>
  android.util.AndroidException: INSTRUMENTATION_FAILED: com.abc.xyz.test/android.test.InstrumentationTestRunner
          at com.android.commands.am.Am.runInstrument(Am.java:586)
          at com.android.commands.am.Am.run(Am.java:117)
          at com.android.commands.am.Am.main(Am.java:80)
          at com.android.internal.os.RuntimeInit.finishInit(Native Method)
          at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:263)
          at dalvik.system.NativeStart.main(Native Method)
  INSTRUMENTATION_STATUS: id=ActivityManagerService
  INSTRUMENTATION_STATUS: Error=Unable to find instrumentation target package: com.abc.xyz
  INSTRUMENTATION_STATUS_CODE: -1
  </pre>
  
  <p>AndroidMAnifest.xml contains:</p>
  
  <pre><code>    android:name="android.test.InstrumentationTestRunner"
      android:targetPackage="com.abc.xyz" 
  
      inside instrumentation tag
  </code></pre>
  
  <p>Could anyone please help me  </p>