Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <code>android.jar</code> file that you use to create the application does only contain stub implementations.</p> <pre><code>public void something(...) { throw new RuntimeException("Stub!"); } </code></pre> <p>Stubbing the implementations reduces the size of the SDK a lot. This is fine for building an app as you still build against Android's public API. To finally execute your APK or run tests again, it must be deployed on either a device or emulator.</p> <p><strong>Update</strong></p> <p>To actually solve the problem you need an attached device or running emulator instance on your laptop. Verify that it's accessible by listing all available devices with <code>adb</code>:</p> <pre><code>$ adb devices </code></pre> <p>The <code>run-tests</code> target should automatically deploy your application on an emulator or device. If it does not you probably have to update your project first. The Android documentation, section <a href="http://developer.android.com/tools/testing/testing_otheride.html#RunTestsCommand" rel="nofollow">Running Tests</a>, states:</p> <blockquote> <p>You can use Ant to run all the tests in your test project, using the target run-tests, which is created automatically when you create a test project with the android tool.</p> <p>This target re-builds your main project and test project if necessary, <strong>installs the test application to the current AVD or device</strong>, and then runs all the test classes in the test application.</p> <p>You can update an existing test project to use this feature. To do this, use the android tool with the update test-project option.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

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