Jetpack compose crashes when adding intercom library | Community
Skip to main content
Answered

Jetpack compose crashes when adding intercom library

  • May 15, 2023
  • 1 reply
  • 171 views

I’m having a crash after adding intercom SDK to my jetpack compose project.
I using intercom-sdk-base:15.0.0

At launch I’m having this crash (before I init intercom):

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.solidict.gezerkasa.dev, PID: 31609
    java.lang.NullPointerException: Parameter specified as non-null is null: method androidx.compose.material.ModalBottomSheetKt.rememberModalBottomSheetState, parameter confirmStateChange
        at androidx.compose.material.ModalBottomSheetKt.rememberModalBottomSheetState(Unknown Source:7)
        at com.google.accompanist.navigation.material.BottomSheetNavigatorKt.rememberBottomSheetNavigator(BottomSheetNavigator.kt:107)

 

I tried to change material versions as I saw in the other tickets but again I had the same crash.

I tried to use different intercom versions all the same.

any help would be greatly appreciated.

Best answer by Jacob Cox

Hi @Ahmet Nova !

 

It’s not clear to me that the error message you sent over is related to the SDK. Is there a reason why you think it is?

Also, by “Jetpack compose project” do you mean a native Android app?

1 reply

Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • Answer
  • May 28, 2023

Hi @Ahmet Nova !

 

It’s not clear to me that the error message you sent over is related to the SDK. Is there a reason why you think it is?

Also, by “Jetpack compose project” do you mean a native Android app?