Skip to content

[BUG] Error after upgrading from 1.6.0 -> 1.6.1/2 depending on kotlin version used #423

@Hipermuflon

Description

@Hipermuflon

Describe the bug
I am trying to upgrade my whole project to newest libraries (kotlin 2.0.0 included). The behaviour I'm seeing is really weird and depends on the kotlin version I'm using. I tried to use other libraries' versions exactly like in Precompose repo.

To Reproduce kotlin 2.0.0
Steps to reproduce the behavior:

  1. Upgrade precompose to 1.6.2 and kotlin to 2.0.0
  2. Build project
  3. Build fails with error java.lang.IllegalStateException: FIELD name:moe_tlaster_precompose_navigation_Navigator$stable type:kotlin.Int visibility:public [final,static]

To Reproduce kotlin 2.0.21
Steps to reproduce the behavior:

  1. Upgrade precompose to 1.6.2 and kotlin to 2.0.21
  2. Build project
  3. Build succeeds
  4. One of my UI's that uses UIKitViewController doesn't render (it works fine with kotlin 1.9.23 and precompose 1.6.0)

Expected behavior
Project builds and all the views are rendered correctly.

I am wondering what might be the issue but maybe a new version of precompose with kotlin upgraded to 2.0.21 would work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions