Hello everyone, im trying add jetpack compose to m...
# compose
m
Hello everyone, im trying add jetpack compose to my an existing app but i cant. I have an error related of room compiler(annotation processors).When compose is enabled annotation processor get error.Can anyone help me?
g
please, share a bit more details, build log
m
My error is e: java.lang.NoSuchMethodError: org.jetbrains.kotlin.codegen.state.GenerationState$Builder.isIrBackend(Z)Lorg/jetbrains/kotlin/codegen/state/GenerationState$Builder;
g
build with --stacktrace
it looks that you have some compiler plugin which doesn’t work with Kotlin 1.4 (compiler plugins are not stable and changed in 1.4
m
I know but what should i do?
g
what --stacktrace is showing?
what kind plugin is failing?
which version of compose you use?
m
Compose version :
Copy code
1.0.0-alpha01
Kotlin version 1.4.0.I got this error 1.3.60.I searching this error at web answer is what find at google is error related with annotation processor(Room or dagger)
g
Room works fine with compose in this sample app by Romain https://github.com/romainguy/sample-materials-shop
Probably some code in your app uses old version of Kotlin compiler or old version of compose
or there is another issue, what is in your stacktrace?