Small hint for everyone who try to use JaCoCo coverage in android builds... unexpected finding!!!

Problem was: during Jacoco report generation produced only HTML version of report and skipped for no good reason XML report generation

Solution: in own build scripts apply jacoco plugin first and then apply android build system plugin.

if (useJacoco) {
    /* */
    apply plugin: 'jacoco'
apply plugin: ''

Remember: do not apply Jacoc plugin after the android plugin, otherwise will be unexpected JaCoCo report task behavior.

related to:

Tags: #android   #jacoco   #gradle   #xml   #androidstudio
Shared publiclyView activity