Класс kotlin.unit был составлен с несовместимой версией Kotlin. Бинарная версия его метаданных составляет 1.5.1, ожидаемая версия 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