title: Unable to instantiate instrumentation ComponentInfo
body: <p>I am trying to set up JUnit tests for Android and I have the manifest and such set up but I keep getting this errror: </p>
  
  <pre><code>java.lang.RuntimeException: Unable to instantiate instrumentation ComponentInfo {com.example.Android/android.test.InstrumentationTestRunner}: java.lang.ClassNotFoundException: android.test.InstrumentationTestRunner in loader dalvik.system.PathClassLoader[/data/app/com.example.Android-1.apk:/data/app/com.example.Android-1.apk]
  </code></pre>
  
  <p>Test Class:</p>
  
  <pre><code>  public class ConnectionToSiteTest extends AndroidTestCase{
      private final String emailUsername = "testUser@gmail.com";
      private final String password = "test";
      private final String features = "222222";
      private String commands;
  
      public void testCommandReturn(){
          requestToSite();
  
          assertEquals("222222", commands);
      }
  
      private void requestToSite(){
          try {
              // Create params for connection including 3sec timeout
              // on connection and 5sec timeout on socket
              HttpParams httpParams = new BasicHttpParams();
              int timeoutConnection = 3000;
              int timeoutSocket = 5000;
  
              // Set the timeouts
              HttpConnectionParams.setConnectionTimeout(httpParams,
                      timeoutConnection);
              HttpConnectionParams.setSoTimeout(httpParams, timeoutSocket);
              HttpClient httpClient = new DefaultHttpClient(httpParams);
  
              // Create the data entities
              HttpPost post = new HttpPost("http://example.com/AndroidCommands");
              HttpResponse response;
  
              // Set POST data
              List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(
                      2);
              nameValuePairs.add(new BasicNameValuePair("emailUsername",
                      emailUsername));
              nameValuePairs.add(new BasicNameValuePair("password",
                      password));
              nameValuePairs.add(new BasicNameValuePair("features",
                      features));
              post.setEntity(new UrlEncodedFormEntity(nameValuePairs));
  
              // Query the server and store the user's ID
              response = httpClient.execute(post);
  
              // Grabs the command string from response headers and processes them
              commands = (String) response.getHeaders("commands")[0].getValue();
  
          } catch (UnsupportedEncodingException e) {
          } catch (ClientProtocolException e) {
          } catch (IOException e) {
          }
      }
  }
  </code></pre>
  
  <p>AndroidManifest.xml:</p>
  
  <pre><code>&lt;uses-library android:name="android.test.runner" /&gt;
  &lt;instrumentation android:name="android.test.InstrumentationTestRunner"
     android:targetPackage="edu.neumont.MillerK.Android" android:label="Tests for My App" /&gt;
  &lt;activity
          android:name="com.example.Android.ConnectionToSiteTest"&gt;            
      &lt;/activity&gt;
  </code></pre>
  
  <p>Test Suite Class:</p>
  
  <pre><code>    public class AllTests extends TestSuite {
      public static Test suite() {
          return new TestSuiteBuilder(AllTests.class).includeAllPackagesUnderHere().build();
      }
  }
  </code></pre>
  
  <p>I've been trying to find the same exception somewhere that it has been fixed, but haven't found anything. </p>