Answered

[Android] Android Sdk Crash failing to resolve LocalSoftwareKeyboardController

  • 31 October 2023
  • 3 replies
  • 46 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)

icon

Best answer by Jacob Cox 6 November 2023, 00:06

View original

3 replies

Userlevel 3
Badge

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?

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

Userlevel 3
Badge

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!

Reply