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 {
completion-service
lando
snmp4j
qgraphicsitem
recv
datainputstream
hierarchical-clustering
django-cors-headers
directory
touchstart
inno-setup
symfony-4.4
spring-integration-amqp
anaconda
instrumentation
eonasdan-datetimepicker
join-hints
passenger-nginx
avcapture
react-localization
figure
sphinx-apidoc
dam
flutter-custompaint
microsoft-graph-intune
constraintlayout-barrier
icarousel
constraint-layout-chains
proto3
esri