Fixed
Status Update
Comments
hu...@google.com <hu...@google.com> #2
Disregard - after adding
enableUnitTestCoverage = false
enableAndroidTestCoverage false
Thinks started to work again.
But for what it is worth - the error message could have been more helpful.
enableUnitTestCoverage = false
enableAndroidTestCoverage false
Thinks started to work again.
But for what it is worth - the error message could have been more helpful.
lu...@google.com <lu...@google.com> #3
Well the error message is that it tried to configure jacoco task and failed, so it works for you because you disabled the feature.
So the error message is indicative of a bigger problem. Oviously, 8.2 is pretty old for us, not sure you are interested in trying 8.8.
The easiest would be to have a project reproducing the issue, if that's possible, we'll look into it.
Description
I found this bug when debugging Issue 390736538 .
Steps to reproduce
app
depending onlib
app/build.gradle.kts
, addandroid { buildTypes { debug { enableAndroidTestCoverage = true } } }
to runJacocoTransform
.lib
, addclass A
,B
,C
inA.kt
,B.kt
,C.kt
../gradlew :app:assembleDebug
. Inspect the APK and see that it contains all 3 classes. (We can also check the contents of thelib/build/.transforms/<hash>/transformed/instrumented_classes
directory.)A.kt
./gradlew :app:assembleDebug
. Inspect the APK again and see that it still containsA.dex
even thoughA.kt
was deleted. (Same for thelib/build/.transforms/<hash>/transformed/instrumented_classes
directory.)Root cause
It seems that we accidentally ignore this filter as the deleted files no longer exist:
DELETED
events on input files when using