vanniktech / gradle-android-junit-jacoco-plugin

Gradle plugin that generates JaCoCo reports from an Android Gradle Project
http://vanniktech.com
Apache License 2.0
400 stars 76 forks source link

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

Open ixsans opened 1 year ago

ixsans commented 1 year ago

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

davinncia commented 1 year ago

Same issue for me, any luck ?

CyxouD commented 1 year ago

Same issue. I've just removed this option

syrinx2012 commented 9 months ago

Same problem here...