I don't think this has anything to do with this channel which is about using the Gradle Kotlin DSL.
I'm not an Android developer, but from the Stacktrace I would guess that you use an Android Gradle Plugin version together with a Kotlin Gradle Plugin version which do not properly work together.
Maybe you want to move your question to #CJYS1DAP5