Answered

Intercom SDK 15.6.2 crash on Android 5 (SDK 21)

  • 12 February 2024
  • 6 replies
  • 218 views

It seems that the new Intercom SDK is not working on Android Lollipop as there’s no minSdkVersion field in the ApplicationInfo class. This happened after the DeviceUtils.getAppMinSdkVersionVersion method was added in 15.6.2.

Fatal Exception: java.lang.NoSuchFieldError: No instance field minSdkVersion of type I in class Landroid/content/pm/ApplicationInfo; or its superclasses (declaration of 'android.content.pm.ApplicationInfo' appears in /system/framework/framework.jar)
at io.intercom.android.sdk.utilities.commons.DeviceUtils.getAppMinSdkVersionVersion(DeviceUtils.java:32)
at io.intercom.android.sdk.metrics.MetricTracker.<init>(MetricTracker.java:608)
at io.intercom.android.sdk.metrics.MetricTracker.<init>(MetricTracker.java:597)
at io.intercom.android.sdk.Injector.getMetricTracker(Injector.java:249)
at io.intercom.android.sdk.Injector.getOverlayPresenter(Injector.java:272)
at io.intercom.android.sdk.Injector.getResetManager(Injector.java:325)
at io.intercom.android.sdk.Injector.getLifecycleTracker(Injector.java:303)
at io.intercom.android.sdk.Injector.initWithAppCredentials(Injector.java:131)
at io.intercom.android.sdk.Intercom$Companion.create(Intercom.kt:1125)
at io.intercom.android.sdk.Intercom$Companion.initialize(Intercom.kt:1038)
at ...

 

icon

Best answer by bernice 12 February 2024, 14:53

View original

6 replies

Userlevel 3
Badge +3

Hey @bartj 👋 Due to the nature of this, I’m going to pass this over to the team to take further action on this issue for you. 

We are seeing the same thing. https://developer.android.com/reference/android/content/pm/ApplicationInfo#minSdkVersion

Was not added until API 24, so this is obviously not usable in “Intercom for Android supports API 21 and above.” as stated.

Seeing the same issue we updated from 15.6.0 → 15.6.2

One device so far: Samsung Galaxy S5, Android 6.0.1 (SDK 23) 

Of note this is happening 100% in the Background according to Firebase.

I was able to reproduce using an emulator - immediate crash at startup.  

 

Hello! Same issue here, with over 10,000 affected users. Are there any updates on the fix? I see that the version with the bug was released three weeks ago, and downgrading isn't feasible due to incompatibilities with the compose version.

Userlevel 1

We are seeing the same issue for our users using Android 6.
Is there any updates from intercom team? 
App just crashes on Android 6 on app start, simply because of chat SDK

Userlevel 4
Badge +5

Hey there folks!

This issue should be fixed in our latest Android SDK!

Reply