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 a similar problem when I was migrating a template project. What fixed it for me was deleting some template code that accessed elements that were grabbed by findbyviewid.