gradle-android-junit-jacoco-plugin icon indicating copy to clipboard operation
gradle-android-junit-jacoco-plugin copied to clipboard

Error groovy.lang.MissingPropertyException: Could not get unknown property 'xml'

Open ixsans opened this issue 2 years ago • 3 comments
trafficstars

Hi there, I'm trying to integrate jacoco into my Android Studio project and getting this error during gradle sync:

Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'xml' for extension 'junitJacoco' of type com.vanniktech.android.junit.jacoco.JunitJacocoExtension.
	at org.gradle.internal.metaobject.AbstractDynamicObject.getMissingProperty(AbstractDynamicObject.java:85)
	at org.gradle.internal.metaobject.ConfigureDelegate.getProperty(ConfigureDelegate.java:130)
	at build_44urd2oums4mcm7e9okqxb6qx$_run_closure2.doCall

This error due to xml/csv/html part in this config:

junitJacoco {
    jacocoVersion = '0.8.7' // type String
    ignoreProjects = [] // type String array
    excludes // type String List
    includeNoLocationClasses = false // type boolean
    includeInstrumentationCoverageInMergedReport = false // type boolean
    xml.enabled = true
    csv.enabled = true
    html.enabled = true
}

Note: I'm using gradle 7.4 and jdk 11

ixsans avatar Mar 20 '23 09:03 ixsans

Same issue for me, any luck ?

davinncia avatar Jul 06 '23 06:07 davinncia

Same issue. I've just removed this option

CyxouD avatar Sep 18 '23 11:09 CyxouD

Same problem here...

syrinx2012 avatar Feb 26 '24 18:02 syrinx2012