If I try to upgrade to the latest Kotlin version in my Gradle project, I get the following error building my Android subproject:
e: /(redacted)/AndroidLauncher.kt: (8, 15): Cannot access built-in declaration 'kotlin.Unit'. Ensure that you have a dependency on the Kotlin standard library
Downgrading back to 1.3.31 builds fine. I also tried upgrading my com.android.tools.build version from 3.4.0 -> 3.4.1, but no difference.
The error makes it pretty clear that there's trouble finding the Kotlin STL. Is there some new dependency I need to add or plugin I need to apply?