title: Android test code coverage with JaCoCo Gradle plugin
body: <p>I'm new to Gradle and Android testing but I've already converted my Android project to build with Gradle.</p>
  
  <p>Now I'm trying to perform test coverage of an Android project with Gradle's JaCoCo plugin.</p>
  
  <p>I've added the following to my build.gradle file:</p>
  
  <pre><code>apply plugin: 'jacoco'
  </code></pre>
  
  <p>And when I run "gradle jacocoTestReport" the following error:</p>
  
  <pre><code>Task 'jacocoTestReport' not found in root project '&lt;project name&gt;'.
  </code></pre>
  
  <p>From the documentation I'm supposed to also apply plugin 'java' but it conflicts with plugin 'android'.</p>
  
  <p>Is there a way around this?</p>
  
  <p>Thanks in advance.</p>