Migrate to Jetpack compose error: Unbound symbols not allowed

前端 未结 3 941

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

相关标签:
3条回答
  • 2021-02-07 12:46

    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.

    0 讨论(0)
  • 2021-02-07 12:51

    Apparently, this issue has been fixed and will be shipped to Kotlin:1.4.20 (Which is not released at the time)

    Google issue tracker reference

    Kotlin Pull request

    [Update at 27 Nov]

    Updating to 1.4.20 leads to another error [Ref]

    0 讨论(0)
  • 2021-02-07 13:03

    I had the same problem. As a workaround, I replaced all Kotlin synthetic with ViewBinding. After I did it everything worked.

    0 讨论(0)
提交回复
热议问题