Answered

Intercom 12.4.2 crashes - apparently when an IntercomSurveyActivity is created

  • 28 June 2022
  • 1 reply
  • 164 views

Many of our Android users experienced this crash. I wonder if you can help diagnose the issue? I was using:

 

io.intercom.android:intercom-sdk:12.4.2

com.google.firebase:firebase-messaging:23.0.5

 

I also saw this issue appear on the following versions:

 

io.intercom.android:intercom-sdk:12.3.0

com.google.firebase:firebase-messaging:20.2.+

 

Stack trace:

 

java.lang.NoSuchMethodError: No static method rememberSystemUiController(Landroidx/compose/runtime/Composer;I)Lcom/google/accompanist/systemuicontroller/SystemUiController; in class Lcom/google/accompanist/systemuicontroller/SystemUiControllerKt; or its super classes (declaration of 'com.google.accompanist.systemuicontroller.SystemUiControllerKt' appears in base.apk!classes2.dex)

at io.intercom.android.sdk.survey.ui.IntercomSurveyActivity$onCreate$1$1.invoke(IntercomSurveyActivity.kt:53)

at io.intercom.android.sdk.survey.ui.IntercomSurveyActivity$onCreate$1$1.invoke(IntercomSurveyActivity.kt:52)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)

at androidx.compose.material.MaterialTheme_androidKt.PlatformMaterialTheme(MaterialTheme.android.kt:23)

at androidx.compose.material.MaterialThemeKt$MaterialTheme$1$1.invoke(MaterialTheme.kt:82)

at androidx.compose.material.MaterialThemeKt$MaterialTheme$1$1.invoke(MaterialTheme.kt:81)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)

at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)

at androidx.compose.material.TextKt.ProvideTextStyle(Text.kt:265)

at androidx.compose.material.MaterialThemeKt$MaterialTheme$1.invoke(MaterialTheme.kt:81)

at androidx.compose.material.MaterialThemeKt$MaterialTheme$1.invoke(MaterialTheme.kt:80)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)

at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)

at androidx.compose.material.MaterialThemeKt.MaterialTheme(MaterialTheme.kt:72)

at io.intercom.android.sdk.survey.ui.ThemeKt.IntercomSurveyTheme(Theme.kt:21)

at io.intercom.android.sdk.survey.ui.IntercomSurveyActivity$onCreate$1.invoke(IntercomSurveyActivity.kt:52)

at io.intercom.android.sdk.survey.ui.IntercomSurveyActivity$onCreate$1.invoke(IntercomSurveyActivity.kt:51)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)

at androidx.compose.ui.platform.ComposeView.Content(ComposeView.android.kt:402)

at androidx.compose.ui.platform.AbstractComposeView$ensureCompositionCreated$1.invoke(ComposeView.android.kt:248)

at androidx.compose.ui.platform.AbstractComposeView$ensureCompositionCreated$1.invoke(ComposeView.android.kt:247)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)

at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)

at androidx.compose.ui.platform.CompositionLocalsKt.ProvideCommonCompositionLocals(CompositionLocals.kt:177)

at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt$ProvideAndroidCompositionLocals$3.invoke(AndroidCompositionLocals.android.kt:123)

at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt$ProvideAndroidCompositionLocals$3.invoke(AndroidCompositionLocals.android.kt:122)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)

at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)

at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt.ProvideAndroidCompositionLocals(AndroidCompositionLocals.android.kt:114)

at androidx.compose.ui.platform.WrappedComposition$setContent$1$1$3.invoke(Wrapper.android.kt:157)

at androidx.compose.ui.platform.WrappedComposition$setContent$1$1$3.invoke(Wrapper.android.kt:156)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)

at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)

at androidx.compose.ui.platform.WrappedComposition$setContent$1$1.invoke(Wrapper.android.kt:156)

at androidx.compose.ui.platform.WrappedComposition$setContent$1$1.invoke(Wrapper.android.kt:140)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)

at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)

at androidx.compose.runtime.ActualJvm_jvmKt.invokeComposable(ActualJvm.jvm.kt:74)

at androidx.compose.runtime.ComposerImpl$doCompose$2$5.invoke(Composer.kt:3184)

at androidx.compose.runtime.ComposerImpl$doCompose$2$5.invoke(Composer.kt:3174)

at androidx.compose.runtime.SnapshotStateKt__DerivedStateKt.observeDerivedStateRecalculations(DerivedState.kt:252)

at androidx.compose.runtime.SnapshotStateKt.observeDerivedStateRecalculations

at androidx.compose.runtime.ComposerImpl.doCompose(Composer.kt:3174)

at androidx.compose.runtime.ComposerImpl.composeContent$runtime_release(Composer.kt:3111)

at androidx.compose.runtime.CompositionImpl.composeContent(Composition.kt:568)

at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(Recomposer.kt:811)

at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:503)

at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:140)

at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:131)

at androidx.compose.ui.platform.AndroidComposeView.setOnViewTreeOwnersAvailable(AndroidComposeView.android.kt:998)

at androidx.compose.ui.platform.WrappedComposition.setContent(Wrapper.android.kt:131)

at androidx.compose.ui.platform.WrappedComposition.onStateChanged(Wrapper.android.kt:182)

at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:354)

at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.java:196)

at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:138)

at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:131)

at androidx.compose.ui.platform.AndroidComposeView.onAttachedToWindow(AndroidComposeView.android.kt:1085)

at android.view.View.dispatchAttachedToWindow(View.java:19731)

at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3443)

at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3450)

at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3450)

at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3450)

at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3450)

at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3450)

at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3450)

at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2198)

at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1854)

at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8086)

at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1057)

at android.view.Choreographer.doCallbacks(Choreographer.java:875)

at android.view.Choreographer.doFrame(Choreographer.java:776)

at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1042)

at android.os.Handler.handleCallback(Handler.java:888)

at android.os.Handler.dispatchMessage(Handler.java:100)

at android.os.Looper.loop(Looper.java:213)

at android.app.ActivityThread.main(ActivityThread.java:8178)

at java.lang.reflect.Method.invoke(Method.java)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)


https://forum.intercom.com/s/question/0D55c00006DGSGJCA5/intercom-1242-crashes-apparently-when-an-intercomsurveyactivity-is-created

icon

Best answer by Daniel M15 30 June 2022, 18:14

View original

1 reply

Userlevel 2

Hey there​! Daniel from Customer Support Engineering here 🔧 

 

I see that you were able to get some help from one of my teammates via our Messenger! If any other users find this thread and have the same issue, here is the suggested cause and workaround:

 

This issue could be caused if you are using a beta library, and Intercom is targeting androidx.compose.ui:ui:1.1.0. You will need to try to force the version number of compose libraries to 1.1.0 to fix it.

 

Alternatively, you can attempt to identify the library that is making use of 1.2.0-beta and either try use an older version of that particular library for compatibility's sake.

Reply