Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ixsans opened this issue Mar 20, 2023 · 3 comments

Comments

@ixsans
Copy link

ixsans commented Mar 20, 2023

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
Copy link

Same issue for me, any luck ?

@CyxouD
Copy link

CyxouD commented Sep 18, 2023

Same issue. I've just removed this option

@syrinx2012
Copy link

Same problem here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants