Skip to main content
Answered

[Android] Android Sdk Crash failing to resolve LocalSoftwareKeyboardController

  • October 31, 2023
  • 7 replies
  • 1182 views

Integration with the sdk seems to work but when I navigate to the messaging screens it crashes immediately 

 

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/ui/platform/LocalSoftwareKeyboardController;
                                                                                                        at io.intercom.android.sdk.m5.conversation.ui.ConversationScreenKt.ConversationScreenContent(ConversationScreen.kt:240)
                                                                                                        at io.intercom.android.sdk.m5.conversation.ui.ConversationScreenKt.ConversationScreen(ConversationScreen.kt:119)
                                                                                                        at io.intercom.android.sdk.m5.navigation.ConversationDestinationKt$conversationDestination$5.invoke(ConversationDestination.kt:79)
                                                                                                        at io.intercom.android.sdk.m5.navigation.ConversationDestinationKt$conversationDestination$5.invoke(ConversationDestination.kt:53)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:138)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
                                                                                                        at androidx.navigation.compose.NavHostKt$NavHost$14$1.invoke(NavHost.kt:320)
                                                                                                        at androidx.navigation.compose.NavHostKt$NavHost$14$1.invoke(NavHost.kt:318)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:108)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
                                                                                                        at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:248)
                                                                                                        at androidx.compose.runtime.saveable.SaveableStateHolderImpl.SaveableStateProvider(SaveableStateHolder.kt:84)
                                                                                                        at androidx.navigation.compose.NavBackStackEntryProviderKt.SaveableStateProvider(NavBackStackEntryProvider.kt:65)
                                                                                                        at androidx.navigation.compose.NavBackStackEntryProviderKt.access$SaveableStateProvider(NavBackStackEntryProvider.kt:1)
                                                                                                        at androidx.navigation.compose.NavBackStackEntryProviderKt$LocalOwnersProvider$1.invoke(NavBackStackEntryProvider.kt:52)
                                                                                                        at androidx.navigation.compose.NavBackStackEntryProviderKt$LocalOwnersProvider$1.invoke(NavBackStackEntryProvider.kt:51)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:108)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
                                                                                                        at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)
                                                                                                        at androidx.navigation.compose.NavBackStackEntryProviderKt.LocalOwnersProvider(NavBackStackEntryProvider.kt:47)
                                                                                                        at androidx.navigation.compose.NavHostKt$NavHost$14.invoke(NavHost.kt:318)
                                                                                                        at androidx.navigation.compose.NavHostKt$NavHost$14.invoke(NavHost.kt:302)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:138)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
                                                                                                        at androidx.compose.animation.AnimatedContentKt$PopulateContentFor$5.invoke(AnimatedContent.kt:942)
                                                                                                        at androidx.compose.animation.AnimatedContentKt$PopulateContentFor$5.invoke(AnimatedContent.kt:933)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:117)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
                                                                                                        at androidx.compose.animation.AnimatedVisibilityKt.AnimatedEnterExitImpl(AnimatedVisibility.kt:818)
                                                                                                        at androidx.compose.animation.AnimatedContentKt$AnimatedContent$6$2$1.invoke(AnimatedContent.kt:1256)
                                                                                                        at androidx.compose.animation.AnimatedContentKt$AnimatedContent$6$2$1.invoke(AnimatedContent.kt:824)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:108)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
                                                                                                        at androidx.compose.animation.AnimatedContentKt$AnimatedContent$6.invoke(AnimatedContent.kt:855)
                                                                                                        at androidx.compose.animation.AnimatedContentKt$AnimatedContent$6.invoke(AnimatedContent.kt:775)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:117)
                                                                                                        at androidx.compose.runtime.internal.ComposableLambdaImpl$invoke$1.invoke(ComposableLambda.jvm.kt:129)

Best answer by Jacob Cox

Hey there!

Our latest Android SDK release (version 15.6.2) should address the issue with Compose!

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

7 replies

Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • November 5, 2023

Hi @JPInto !

Can you confirm that you’re using our most up-to-date Android SDK? You can find the newest version here!

If you aren’t using that newest version, can you update your SDK and see if you’re still running into this issue?


  • Author
  • New Participant
  • 1 reply
  • November 6, 2023

Yes it’s the latest.

I believe it’s related to compose 1.6.0

Stripe had the same issue and the solution worked for in this case also https://github.com/stripe/stripe-android/issues/7184


Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • November 11, 2023

Thanks for confirming that @JPInto !

Issues like this are best handled by writing into the actual Support Team. I’m going to send your message over to them and they will reach back out to you via the email address that you signed up with and get more details from you! Keep an eye on your spam inbox just to make sure you don’t miss their message!


  • New Participant
  • 1 reply
  • December 28, 2023

Hi, i have the same issue as above, is there any resolution to this?


Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • January 28, 2024

Hi @nquinn9412 !

This issue looks to be related to the version of Compose that some customers are using. You’ll either need to make sure you’re not using Compose version 1.6.0 (which is currently in Beta, I believe) and that you aren’t using dependencies that rely on it. If you are, then I would recommend trying this workaround that is discussed here.


  • New Participant
  • 2 replies
  • February 2, 2024

Hello, we also met this error. It occurres with compose 1.6.0 which is stable now.
Regards


Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • Answer
  • February 3, 2024

Hey there!

Our latest Android SDK release (version 15.6.2) should address the issue with Compose!


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