xxxxxxxxxx
what solved my problem is changing this at build.gradle
from
ext.kotlin_version = '1.3.50'
to
ext.kotlin_version = '1.6.0'
or what ever the latest version of Kotlin available and make sure to update
Kotlin version on Android Studio as well