title: Android instrumentation test can't find target class by name with integration test configure
body: <p>I am trying to setup a standalone android instrumentation test project to test our app for integration scenarios. The test app is a standalone project without reference to our apps.  When I setup the project, I did:</p>
  <ol>
  <li>Add instrumentation attribute to test app androidManifest.xml file as:</li>
  </ol>
  <blockquote>
  <p>&lt;instrumentation
  android:name=&quot;android.support.test.runner.AndroidJUnitRunner&quot;
  android:targetPackage=&quot;com.targetAppPackageName&quot;
  android:label=&quot;Integration Test&quot; ...</p>
  </blockquote>
  <ol start="2">
  <li>Added:</li>
  </ol>
  <blockquote>
  <p>&lt;uses-library android:name=&quot;android.test.runner&quot;...</p>
  </blockquote>
  <p>to the manifest file as well</p>
  <ol start="3">
  <li>Added the same keyStore signature file to sign the test app as the one used for our application</li>
  <li>I can see my test app is associated with target package from system package dump</li>
  </ol>
  <p>Test failed when it tried to find the target class from target app like(kotlin):</p>
  <pre><code> var activityClass = try {
              Class.forName(appActivity)
          } catch (e: ClassNotFoundException) {
              e.printStackTrace()
          }
  </code></pre>
  <p>The error was class not found.  I can see the classpath might not include the target package apk.  According to android doc, this should work.  Any one know what could be the issue and how to fix it?</p>