Fix `IncorrectContextUseViolation issue in Android SDK | Community
Skip to main content
Submitted

Fix `IncorrectContextUseViolation issue in Android SDK

  • November 11, 2025
  • 0 replies
  • 2 views

Forum|alt.badge.img

I’m using the Intercom SDK in my app. App is full Compose and running the 17.3.0 version of the Intercom SDK. I’m also using Android’s StrictMode (https://developer.android.com/reference/android/os/StrictMode). StrictMode throws this issue and it seems to be related to the Intercom SDK👇🏼 The Intercom Android engineering team should fix

 

StrictMode policy violation: android.os.strictmode.IncorrectContextUseViolation: The API:LayoutInflater needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or  createConfigurationContext(Configuration) with a proper configuration.