question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[compose] Class not found MutableState - Runtime Crash

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
gpealcommented, Feb 25, 2021

I just manually pushed a new snapshot

3reactions
ericktijeroucommented, Feb 25, 2021

I’ve updated to 1.0.0-alpha07-SNAPSHOT and everything works well with compose 1.0.0-beta01.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found