title: Android Studio Unit Testing: unable to find instrumentation OR class not found ex
body: <p>I have a test suite within my Android studio that has the following dir structure:</p>
  
  <pre><code>-MainProject
   -src
    --com
    --tests
      --java.xx.xxx.xx.test
  </code></pre>
  
  <p>Within my AndroidManifest, I have the following:</p>
  
  <pre><code>&lt;instrumentation
      android:name="android.test.InstrumentationTestRunner"
      android:targetPackage="tests.java.xxx.xxx.xxx.test" /&gt;
  </code></pre>
  
  <p>When I run my tests from the command line using: <code>./gradlew connectedInstrumentTest</code>, I simply get:</p>
  
  <pre><code>Tests on Nexus 5 - 4.4.2 failed: Instrumentation run failed due to 'java.lang.ClassNotFoundException'
  </code></pre>
  
  <p>When I run the tests from inside Android Studio I get: </p>
  
  <pre><code>Running tests
  Test running startedTest running failed: Unable to find instrumentation info for: ComponentInfo{tests.xxx.xxx.xxx.xxx.test/android.test.InstrumentationTestRunner}
  Empty test suite.
  </code></pre>
  
  <p>I also have the testPackageName specified in my defaultConfig in the build.gradle file. Am running Android Studio 0.4.6 on Ubuntu 12.0.4.</p>
  
  <p>Any ideas?</p>