Thread
#compose
    Ash

    Ash

    2 years ago
    Does anyone have Room working with Jetpack Compose? The project compiles fine but when I try to run I get
    java.lang.NoSuchMethodError:GenerationState$Builder.isIrBackend(Z)Lorg/
    . I thought I saw a bug fix in the latest Android Studio release notes but I am still getting the error. Could someone please point me to a GitHub or other example where it is working? This a show stopper for us :- ( Thanks really appreciate everyone's help :- )
    m

    Mark Murphy

    2 years ago
    AFAIK the limitations outlined in https://kotlinlang.slack.com/archives/CJLTWPH7S/p1575378726256800 are still relevant
    Ash

    Ash

    2 years ago
    Bummers ... I will look for the Android Studio release notes that addressed this ... I must have misread them.
    @Mark Murphy Thanks for the info. I guess I looked at the wrong note because it is clearly still an issue ... https://youtrack.jetbrains.com/issue/KT-34583 Thanks!
    d

    danieldisu

    2 years ago
    Maybe using Room in a different module than compose works
    Ash

    Ash

    2 years ago
    On Jan 9th they said they will fix it .... hopefully soon.
    Tash

    Tash

    2 years ago
    +1 to what @danieldisu said. I'm keeping all Compose related code in a separate library module so that its isolated.
    Ash

    Ash

    2 years ago
    @Tash true but it sounds like an easy fix for them ... and I can not change our module structure unless the whole team agrees 😞https://youtrack.jetbrains.com/issue/KT-34583#focus=streamItem-27-3893145.0-0