Skip to main content

Android Intercom SDK causes a crash in our app due to differences of the Jetpack Compose version. This issue has already been posted here, but has been marked as solved without actually being such. Since the issue is still present in version 14.2.0, I’m creating a new post, which hopefully will get more attention. Intercom Android SDK v14.2.0 still depends on Jetpack Compose 1.3.3. Our project is using Compose 1.4.4, which is the cause of the problem. Are there any plans to upgrade this anytime soon?

Stacktrace:

java.lang.NoSuchMethodError: No virtual method getOffset()Landroidx/compose/runtime/State; in class Landroidx/compose/material/ModalBottomSheetState; or its super classes (declaration of 'androidx.compose.material.ModalBottomSheetState' appears in /data/app/~~j2gBFh7VrrFZJGyrBBoH8A==/com.phyreapp-HUPotQQpnk4p2DFTgV863w==/base.apk)
at io.intercom.android.sdk.m5.IntercomStickyBottomSheetKt.getEquivalentCorner(IntercomStickyBottomSheet.kt:175)
at io.intercom.android.sdk.m5.IntercomRootActivity$onCreate$1$1.invoke(IntercomRootActivity.kt:102)
at io.intercom.android.sdk.m5.IntercomRootActivity$onCreate$1$1.invoke(IntercomRootActivity.kt:48)
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:363)
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.m5.IntercomThemeKt.IntercomTheme(IntercomTheme.kt:83)
at io.intercom.android.sdk.m5.IntercomRootActivity$onCreate$1.invoke(IntercomRootActivity.kt:48)
at io.intercom.android.sdk.m5.IntercomRootActivity$onCreate$1.invoke(IntercomRootActivity.kt:47)

 

Hey @bkolarov-phyre Racheal from the support engineer team here👋 

 

I have updated the original post, but just to keep this one up to date as well- unfortunately the issue is still open on our end. I have forwarded in your post here so the team can add you to the open issue and keep you posted on an updates or a fix.


Reply