Answered

Android is crashing with compose 1.5.0 when pressing messsage send

  • 31 August 2023
  • 1 reply
  • 317 views

There was a ticket 

which was closed without viable solution, so I’m creating new one.

 

Issue seems to be related to compose and accompanist versions.

Required accompanist version: 0.32.0

Required compose version: 1.5.0

Target and compile sdk: 34

 

Error looks like this:

java.lang.ClassCastException: androidx.compose.animation.AnimatedContentTransitionScopeImpl cannot be cast to androidx.compose.animation.AnimatedContentScope
at io.intercom.android.sdk.m5.navigation.IntercomTransitionsKt$defaultEnterTransition$1.invoke(IntercomTransitions.kt:12)
at androidx.navigation.compose.NavHostKt.createEnterTransition(NavHost.kt:346)
at androidx.navigation.compose.NavHostKt.access$createEnterTransition(NavHost.kt:1)
at androidx.navigation.compose.NavHostKt$NavHost$finalEnter$1$1.invoke(NavHost.kt:260)
at androidx.navigation.compose.NavHostKt$NavHost$finalEnter$1$1.invoke(NavHost.kt:251)
at androidx.navigation.compose.NavHostKt$NavHost$12.invoke(NavHost.kt:295)
at androidx.navigation.compose.NavHostKt$NavHost$12.invoke(NavHost.kt:280)
at androidx.compose.animation.AnimatedContentKt.AnimatedContent(AnimatedContent.kt:787)
at androidx.navigation.compose.NavHostKt.NavHost(NavHost.kt:280)
at androidx.navigation.compose.NavHostKt$NavHost$16.invoke(Unknown Source:27)
at androidx.navigation.compose.NavHostKt$NavHost$16.invoke(Unknown Source:10)
at androidx.compose.runtime.RecomposeScopeImpl.compose(RecomposeScopeImpl.kt:169)
at androidx.compose.runtime.ComposerImpl.recomposeToGroupEnd(Composer.kt:2468)
at androidx.compose.runtime.ComposerImpl.skipCurrentGroup(Composer.kt:2737)
at androidx.compose.runtime.ComposerImpl.doCompose(Composer.kt:3352)
at androidx.compose.runtime.ComposerImpl.recompose$runtime_release(Composer.kt:3303)
at androidx.compose.runtime.CompositionImpl.recompose(Composition.kt:781)
at androidx.compose.runtime.Recomposer.performRecompose(Recomposer.kt:1097)
at androidx.compose.runtime.Recomposer.access$performRecompose(Recomposer.kt:124)
at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$1.invoke(Recomposer.kt:569)
at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$1.invoke(Recomposer.kt:537)
at androidx.compose.ui.platform.AndroidUiFrameClock$withFrameNanos$2$callback$1.doFrame(AndroidUiFrameClock.android.kt:41)
at androidx.compose.ui.platform.AndroidUiDispatcher.performFrameDispatch(AndroidUiDispatcher.android.kt:109)
at androidx.compose.ui.platform.AndroidUiDispatcher.access$performFrameDispatch(AndroidUiDispatcher.android.kt:41)
at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.doFrame(AndroidUiDispatcher.android.kt:69)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1299)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1309)
at android.view.Choreographer.doCallbacks(Choreographer.java:923)
at android.view.Choreographer.doFrame(Choreographer.java:847)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1283)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8757)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

 

We had to update compose version, and now we can’t release our app because intercom crashes.

What is ETA on this fix?

icon

Best answer by Eden 1 September 2023, 21:01

View original

1 reply

Userlevel 3
Badge

Hey @smart 👋 Eden from the support engineer team here.

 

It looks like the team is aware of this issue and they are working on updating the Android SDK to prevent this from occurring. I’ll escalate this post as a conversation with the support team so that you can be added to the open issue and alerted when a fix has been pushed out for this! We will update in that thread as well. 👍

Reply