https://kotlinlang.org logo
Title
a

allan.conda

02/02/2022, 6:32 PM
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

Kirill Grouchnikov

02/02/2022, 6:41 PM
Are you using just Compose, or any other libraries like Accompanist?
g

George Mount

02/02/2022, 6:55 PM
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

allan.conda

02/02/2022, 6:56 PM
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

Kirill Grouchnikov

02/02/2022, 7:19 PM
You need the latest updates to all those libraries
Like this for Accompanist
a

allan.conda

02/02/2022, 7:35 PM
Hmm ok let me have another go
No lucky 😞 Using these versions.
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

Kirill Grouchnikov

02/02/2022, 7:52 PM
What version of Compose did you upgrade to?
Ah, sorry. Looks like you're on 1.0.5
a

allan.conda

02/22/2022, 7:01 PM
Figured it out… somehow I deleted
buildFeatures.compose = true
🤦‍♂️ which caused the build failure