Luca Nicoletti
06/30/2023, 11:06 AMlintBaseline
, following the docs, I should use:
lint {
baseline file("lint-baseline.xml")
}
But this give me this error:
* What went wrong:
'void com.android.build.api.dsl.Lint.baseline(java.io.File)'
While using
lint {
baseline(file("lint-baseline.xml"))
}
Give me this error:
Unable to find method ''void com.android.build.api.dsl.Lint.baseline(java.io.File)''
'void com.android.build.api.dsl.Lint.baseline(java.io.File)'
Anyone know how to solve this? Which is the correct(current) syntax for a .gradle.kts
file?MR3Y
06/30/2023, 12:36 PMlint {
baseline = file("lint-baseline.xml")
}
because baseline is a property not a method.
Also, there is a dedicated channel for this type of questions #gradle, it is off-topic here.Luca Nicoletti
06/30/2023, 12:41 PMMR3Y
06/30/2023, 12:49 PMLuca Nicoletti
06/30/2023, 12:50 PMMR3Y
06/30/2023, 12:54 PMLuca Nicoletti
06/30/2023, 12:56 PMMR3Y
06/30/2023, 12:59 PMbaseline("lint-baseline.xml")
Luca Nicoletti
06/30/2023, 1:00 PMUnable to find method ''void com.android.build.api.dsl.Lint.baseline(java.lang.String)''
'void com.android.build.api.dsl.Lint.baseline(java.lang.String)'
MR3Y
06/30/2023, 1:04 PM