I am extremely surprised some folks still use the unmaintained, experimental "Groovy on Android" plugin I wrote years ago: https://github.com/groovy/groovy-android-gradle-plugin/issues/179
What you get with Kotlin those days, you got that with Groovy back then :)