I’m trying to update Compose to the latest version...
# compose
a
I’m trying to update Compose to the latest versions, but I’m getting
Backend Internal error: Exception during IR lowering
Caused by: java.lang.IllegalStateException: couldn't find inline method Landroidx/compose/runtime/EffectsKt;.rememberCoroutineScope$default
How can I go about fixing this issue? I can’t find a solution from searching here.
k
Are you using just Compose, or any other libraries like Accompanist?
g
I don't want to be "that guy," but did you try using "Clean Project?" I sometimes find that if I just do a build clean the problem resolves itself.
a
Yes. I already did SOP Nuke the IDE 😄
I use Compose, Navigation, Accompanist, pretty much everything available in compose right now. Anything interesting about accompanist? I’ve been trying different versions from it but no luck
The weird thing I realized recently is that compose-samples haven’t been updated in a while. Google probably doesn’t even know the libraries don’t work anymore when you update all the dependencies.
I usually use that project to know if it’s my project’s issue or Compose-related one
k
You need the latest updates to all those libraries
Like this for Accompanist
a
Hmm ok let me have another go
No lucky 😞 Using these versions.
Copy code
version.androidx.compose.compiler=1.0.5
version.androidx.compose.material=1.0.5
version.androidx.compose.runtime=1.0.5
version.androidx.compose.ui=1.0.5
version.androidx.hilt-navigation-compose=1.0.0
version.androidx.navigation-compose=2.4.0
version.androidx.paging-compose=1.0.0-alpha14
version.google.accompanist=0.20.3
Would you mind sharing your current versions if you’re using these?
k
What version of Compose did you upgrade to?
Ah, sorry. Looks like you're on 1.0.5
a
Figured it out… somehow I deleted
buildFeatures.compose = true
🤦‍♂️ which caused the build failure