Hello, need help here. What exactly do I need to r...
# decompose
a
Hello, need help here. What exactly do I need to resolve here and the reason for this crash? Root cause is not clear Full stack trace in comments
Copy code
java.lang.NoSuchMethodError: No virtual method observe(Lkotlin/jvm/functions/Function1;)Lcom/arkivanov/decompose/Cancellation; in class Lcom/arkivanov/decompose/value/Value; or its super classes (declaration of 'com.arkivanov.decompose.value.Value' appears in /data/app/~~vWEfnt0ioIfwtfJzvqcCrA==/com.example.android-U7Xt29Tc5B9em4yGpU3pWg==/base.apk!classes9.dex)
Screenshot 2024-01-08 at 3.22.44 PM.png
a
It looks like a binary compatibility issue. Somewhere there is a code that uses
Value#observe
and Decompose v2. And this method has been removed in v3, and something brings the new version of Decompose.
a
These are the versions I am using. Please let me know if something is incorrect. I was confused about decompose extension version to be used decompose = "3.0.0-alpha04" decompose-experimental = "2.2.2" essenty = "1.3.0"
3.0.0 was not found for experimental
a
Yep, this is the issue. You have to only use 3.0.0-alpha04, no need for the experimental version suffix anymore. See migration guides here: https://github.com/arkivanov/Decompose/releases/tag/3.0.0-alpha01
a
Oh I see, let me try that. Thanks
It worked 🦜
Thanks for the great library!
K 2
149 Views