Skip to main content
Answered

Android SDK 14.2.0 Crashes due to Jetpack Compose version inconsistency

  • April 27, 2023
  • 1 reply
  • 440 views

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)

 

Best answer by Racheal

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.

View original
Did this topic help you find an answer to your question?

1 reply

Racheal
Intercom Team
Forum|alt.badge.img+5
  • Customer Support Engineer
  • 512 replies
  • Answer
  • May 2, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings