I wanted to migrate my existing project to partially use Jetpack compose for it. So I opened it using Android studio 4.2-canary9 and added
Apparently, this issue has been fixed and will be shipped to Kotlin:1.4.20 (Which is not released at the time)
1.4.20
Google issue tracker reference
Kotlin Pull request
[Update at 27 Nov]
Updating to 1.4.20 leads to another error [Ref]