[compose] Class not found MutableState - Runtime Crash
See original GitHub issueWhen following the documentation and fetching the latest snapshot from sonatype the app will crash when using beta-01 versions of compose with a Class not found exception:
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/runtime/MutableStateKt;
I already did some investigations and it seems like although the code already is updated in github the snapshot is not properly pushed.
Here is the output form ./gradlew dependencies
:
--- com.airbnb.android:lottie-compose:1.0.0-alpha06-SNAPSHOT
| +--- com.airbnb.android:lottie:3.6.1-SNAPSHOT
| | +--- androidx.appcompat:appcompat:1.0.0 -> 1.3.0-beta01 (*)
| | \--- com.squareup.okio:okio:1.17.4 -> 2.9.0 (*)
| +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.30 (*)
| +--- androidx.compose.foundation:foundation:1.0.0-alpha12 -> 1.0.0-beta01 (*)
| \--- androidx.compose.ui:ui:1.0.0-alpha12 -> 1.0.0-beta01 (*)
My current workaround: I have cloned the repository and included a selfcompiled .aar
for now.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Failed resolution of: Landroidx/compose/runtime ...
Didn't find class "androidx.compose.runtime. ... The error is caused by the use of MutableState and mutableStateOf which are both imported ...
Read more >Compose Runtime | Android Developers
If a movableContentOf lambda is called multiple times in the same composition, new state and nodes are created for each call and, as...
Read more >rememberSaveable needs default saver [180042685]
However, I've found this causes a crash whenever the app is minimized. ... RuntimeException: Parcel: unable to marshal value androidx.compose.runtime.
Read more >RememberReturnType: remember calls must not return Unit
remember calls must not return Unit. Severity. Error. Category. Correctness. Platform. Any. Vendor. Jetpack Compose. Identifier. androidx.compose.runtime.
Read more >Jetpack Compose State Guideline - Medium
The MutableState is used and the change is detected and the function is recomposed, but the state created in the Composable is not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just manually pushed a new snapshot
I’ve updated to
1.0.0-alpha07-SNAPSHOT
and everything works well with compose1.0.0-beta01
.