To solve my problem here: Applying JaCoCo to all Android Studio gradle modules, I applied the solution here. This works fine so far for modules with plugins {
htk
referential-integrity
nessus
google-document-viewer
dwm
elmah
fluent-ribbon
android-viewtreeobserver
jaxb2-annotate-plugin
shopware6-api
custom-pages
column-sum
perlbrew
jsonb
geth
units-of-measurement
rapid7
top-n
glassfish
dhl
spatial-interpolation
terraform-workspace
android-websettings
deriveddata
take
linq-expressions
markov-models
binary-decision-diagram
ignore-test
persistence