hi guys, has someone idea about what this error me...
# compose
o
hi guys, has someone idea about what this error means
Copy code
Class 'androidx.compose.runtime.Composable' is compiled by a new Kotlin compiler backend and cannot be loaded by the old compiler
l
what is your gradle setup? This is an indication that you’re trying to compile your code with an older kotlin compiler than what compose runtime got compiled with. Make sure you’re using kotlin 1.4
o
Yeah I’m using 1.4, min sdk 23
I ran the task failing with stacktrace, seems that I forgot to add
Copy code
useIR = true
lets see if it works
yeah that was the issue
l
ah, that makes sense 👍
👍 2
e
Copy code
useIR = true
what this means ? @Leland Richardson [G]
2
l
this has the kotlin compiler use the new IR backend that they’ve been working on. compose depends on this backend
buildFeatures { compose true }
should turn this on though
was this on a non-compose enabled module in your app?
e
for me ? no it’s in a compose project, but i just wanted to know the meaning of it, thanks.
o
for me neither, I have viewBinding enabled but I’m trying to add compose to my project but has been a nightmare haha
l
ah. yeah, i’m not personally sure how well viewBinding and compose inter-mix. I think some others have tried it out but I have not
m
@oscarg798 Hi I have same problem. I got this issue when try to check state value in break point. did you find any solution? My issue is inside composable functions. https://stackoverflow.com/questions/64842355/android-studio-canary-4-2-16-on-evaluate-variables-got-error-state-is-compiled