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
I had the same problem. As a workaround, I replaced all Kotlin synthetic with ViewBinding. After I did it everything worked.