Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: How to Install the Instrumentation APK onto an AVD in a Headless Host
    text
    copied!<p>I'm trying to integrate Android JUnit tests with our Bamboo Ant builds. I've already tested the setup locally, and I'm able to run tests.</p> <p>But when I tried the same setup in our Bamboo server, I get the following error when running the tests:</p> <pre><code>INSTRUMENTATION_STATUS: id=ActivityManagerService INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.synapticstuff.guitartabs/pl.polidea.instrumentation.PolideaInstrumentationTestRunner} INSTRUMENTATION_STATUS_CODE: -1 android.util.AndroidException: INSTRUMENTATION_FAILED: com.synapticstuff.guitartabs/pl.polidea.instrumentation.PolideaInstrumentationTestRunner </code></pre> <p>Note that I used a custom library for Instrumentation (<a href="http://code.google.com/p/the-missing-android-xml-junit-test-runner/" rel="noreferrer">http://code.google.com/p/the-missing-android-xml-junit-test-runner/</a>), so that I can pull the JUNit xml test results and feed it to Bamboo.</p> <p>Also, the build agent used in creating the build is an Ubuntu VM, which doesn't have any GUI so I need to do everything via command line. An AVD is already running on that VM.</p> <p>I did encounter the same problem when I first ran the <code>adb shell am instrument .. &lt;snip&gt;</code> command locally, and I found it weird it worked after running the test from Eclipse.</p> <p>Looking up the error log, the <a href="http://www.netmite.com/android/mydroid/development/pdk/docs/instrumentation_framework.html" rel="noreferrer">Android Instrumentation Framework</a> article tells me that </p> <blockquote> <p>"It's possible that the instrumentation apk isn't installed on your device or that the package name is incorrect in the Manifest file."</p> </blockquote> <p>so it must be that the instrumentation apk isn't installed.</p> <p>So, how do I install the instrumentation apk onto the AVD?</p> <p>Thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload