A classe Kotlin.Unit foi compilada com uma versão incompatível do Kotlin. A versão binária de seus metadados é 1.5.1, a versão esperada é 1.1.15.
what solved my problem is changing this at build.gradle
from
ext.kotlin_version = '1.3.50'
to
ext.kotlin_version = '1.4.32'
or what ever the latest version of Kotlin available and make sure to update Kotlin version on Android Studio as well
loonix