I'm new to Gradle and Android testing but I've already converted my Android project to build with Gradle.
Now I'm trying to perform test coverage of an Android project with Gradle's JaCoCo plugin.
I've added the following to my build.gradle file:
apply plugin: 'jacoco'
And when I run "gradle jacocoTestReport" the following error:
Task 'jacocoTestReport' not found in root project '<project name>'.
From the documentation I'm supposed to also apply plugin 'java' but it conflicts with plugin 'android'.
Is there a way around this?
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…