Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>"As reported, the issue should actually have been fixed, but I am still facing the described problem."</p> </blockquote> <p>The issue you refer to (<a href="https://code.google.com/p/android/issues/detail?id=21108" rel="nofollow">issue 21108: Testing library project broken with SDK Tools r14</a>) isn't fixed. This is similar to <a href="https://code.google.com/p/android/issues/detail?id=21304" rel="nofollow">issue 21304: "ant debug installt" should work for test projects.</a> which will <strong>not</strong> be fixed.</p> <p>Here is <a href="https://code.google.com/p/android/issues/detail?id=21108#c3" rel="nofollow">the workaround from Joe Bowbeer</a>:</p> <ol> <li><p>Remove <code>tested.project.dir</code> from <code>ant.properties</code></p></li> <li><p>Add <code>run-tests</code> target to <code>build.xml</code>:</p> <pre><code>&lt;!-- SDK Tools r15 workaround --&gt; &lt;property name="tested.manifest.package" value="com.example.test" /&gt; &lt;target name="run-tests"&gt; &lt;echo&gt;Running tests...&lt;/echo&gt; &lt;exec executable="${adb}" failonerror="true"&gt; &lt;arg line="${adb.device.arg}" /&gt; &lt;arg value="shell" /&gt; &lt;arg value="am" /&gt; &lt;arg value="instrument" /&gt; &lt;arg value="-w" /&gt; &lt;arg value="${tested.manifest.package}/${test.runner}" /&gt; &lt;/exec&gt; </code></pre> <p></p></li> <li><p>Run tests using command line:</p> <pre><code>$ ant debug install run-tests </code></pre></li> </ol> <p>In other words, if you were using one single <code>installt</code> target you need to change that.</p>
    singulars
    1. This table or related slice is empty.
    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.
    2. 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